Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def register():
"""
Create an account for uploading your files
"""
require_existing_project()
username = prompt_for_value('Username')
email = prompt_for_value('Real email')
password = prompt_for_value('Password', password=True)
print('')
status, text = _server.post_json('register', {
'username': username, 'email': email, 'password': password
})
if status == 201:
if text:
_LOG.info(text)
_login(username, password)
else:
_LOG.error('Could not register:\n' + text)
def register():
"""
Create an account for uploading your files
"""
require_existing_project()
username = prompt_for_value('Username')
email = prompt_for_value('Real email')
password = prompt_for_value('Password', password=True)
print('')
status, text = _server.post_json('register', {
'username': username, 'email': email, 'password': password
})
if status == 201:
if text:
_LOG.info(text)
_login(username, password)
else:
_LOG.error('Could not register:\n' + text)
def login():
"""
Save your account details to secret.json
"""
require_existing_project()
username = prompt_for_value('Username')
password = prompt_for_value('Password', password=True)
print('')
_login(username, password)
def login():
"""
Save your account details to secret.json
"""
require_existing_project()
username = prompt_for_value('Username')
password = prompt_for_value('Password', password=True)
print('')
_login(username, password)
def register():
"""
Create an account for uploading your files
"""
require_existing_project()
username = prompt_for_value('Username')
email = prompt_for_value('Real email')
password = prompt_for_value('Password', password=True)
print('')
status, text = _server.post_json('register', {
'username': username, 'email': email, 'password': password
})
if status == 201:
if text:
_LOG.info(text)
_login(username, password)
else:
_LOG.error('Could not register:\n' + text)