added missing make_unique_nickname call
Conflicts: app/views.py
This commit is contained in:
parent
912c6f7b57
commit
39e7521d3b
|
@ -71,6 +71,7 @@ def after_login(resp):
|
|||
nickname = resp.nickname
|
||||
if nickname is None or nickname == "":
|
||||
nickname = resp.email.split('@')[0]
|
||||
nickname = User.make_unique_nickname(nickname)
|
||||
user = User(nickname = nickname, email = resp.email, role = ROLE_USER)
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
|
|
Loading…
Reference in New Issue