Support #43309 ยป new-client.patch
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))
|