Project

General

Profile

Support #43309 ยป new-client.patch

Michael Fritch, 01/09/2020 01:09 AM

View differences:

sepia.test/sepia/new-client 2020-01-08 17:49:31.641205762 -0700
outer.update(salt)
hashed = outer.hexdigest()
if os.path.exists('secret'):
raise SystemExit('new-client: secret file already exists')
with file('secret', 'wb') as f:
os.fchmod(f.fileno(), 0600)
f.write('{user}\n{secret}\n'.format(user=user, secret=secret))
    (1-1/1)