server/users: fix first user's rank

It was set to the latest (== most capable) rank from the config which
is... "nobody", that is supposed to be unattainable.
This commit is contained in:
rr- 2016-04-09 21:39:28 +02:00
parent 05e4a1b977
commit 403cfbd679
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def create_user(session, name, password, email):
update_password(user, password)
update_email(user, email)
if not session.query(db.User).count():
user.rank = config.config['ranks'][-1]
user.rank = 'admin'
else:
user.rank = config.config['default_rank']
user.creation_time = datetime.now()