Fix ID generation
This commit is contained in:
parent
87e1fa48e7
commit
00f2f8f4d8
@ -2,7 +2,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from base64 import urlsafe_b64encode
|
from base64 import urlsafe_b64encode
|
||||||
|
|
||||||
VERSION = '1.0.0'
|
VERSION = '1.0.1'
|
||||||
|
|
||||||
base_url = "https://api.monerosms.com/"
|
base_url = "https://api.monerosms.com/"
|
||||||
proxies = {}
|
proxies = {}
|
||||||
|
@ -59,7 +59,7 @@ def menu():
|
|||||||
print("You are not permitted to use the service unless you agree.")
|
print("You are not permitted to use the service unless you agree.")
|
||||||
return None
|
return None
|
||||||
with open(auth_file, 'wb') as f:
|
with open(auth_file, 'wb') as f:
|
||||||
f.write(urlsafe_b64encode(os.urandom(32)).replace('=', ''))
|
f.write(urlsafe_b64encode(os.urandom(32)).replace(b'=', b''))
|
||||||
print(f'Account number generated {auth_file}')
|
print(f'Account number generated {auth_file}')
|
||||||
print('Back it up to keep access to your account')
|
print('Back it up to keep access to your account')
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user