Commit dea91b16 authored by Philipp Hörist's avatar Philipp Hörist

Interface: Check mandatory values on account creation

Missing one of these values leads to broken accounts
parent 1bd6bcfc
Pipeline #5227 passed with stages
in 2 minutes and 47 seconds
......@@ -1648,13 +1648,19 @@ class Interface:
app.sleeper_state[account] = 'autoxa'
return True # renew timeout (loop for ever)
def create_account(self,
account,
@staticmethod
def create_account(account,
username,
domain,
password,
anonymous=False):
if not account or not username or not domain:
log.error('Creating account failed: '
'account: %s, username: %s, domain: %s',
account, username, domain)
return
config = {}
config['active'] = False
config['name'] = username
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment