user_id defaults to OS username

This commit is contained in:
Nicholas Albion
2023-09-08 03:56:17 +10:00
parent cf94fcaebe
commit c4af2750ac

View File

@@ -1,3 +1,4 @@
import getpass
import os
import re
import sys
@@ -38,7 +39,7 @@ def get_arguments():
arguments['app_id'] = str(uuid.uuid4())
if 'user_id' not in arguments:
arguments['user_id'] = str(uuid.uuid4())
arguments['user_id'] = getpass.getuser()
if 'email' not in arguments:
arguments['email'] = get_email()