diff --git a/app/views.py b/app/views.py index 71ebf7b..c67c3ec 100644 --- a/app/views.py +++ b/app/views.py @@ -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()