Fix ID generation

This commit is contained in:
Kevin F 2022-12-05 22:57:33 +00:00
parent 87e1fa48e7
commit 00f2f8f4d8
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import os
import sys
from base64 import urlsafe_b64encode
VERSION = '1.0.0'
VERSION = '1.0.1'
base_url = "https://api.monerosms.com/"
proxies = {}

View File

@ -59,7 +59,7 @@ def menu():
print("You are not permitted to use the service unless you agree.")
return None
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('Back it up to keep access to your account')
return None