Skip to content

Commit

Permalink
added missing make_unique_nickname call
Browse files Browse the repository at this point in the history
Conflicts:

	app/views.py
  • Loading branch information
miguelgrinberg committed Jan 5, 2013
1 parent 912c6f7 commit 39e7521
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39e7521

Please sign in to comment.