added missing make_unique_nickname call

Conflicts:

	app/views.py
This commit is contained in:
Miguel Grinberg 2013-01-05 12:03:15 -08:00
parent 912c6f7b57
commit 39e7521d3b
1 changed files with 1 additions and 0 deletions

View File

@ -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()