Skip to content

Commit

Permalink
Add missing db.session.commit() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Jan 24, 2017
1 parent 9e1ce86 commit 51a35d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions authentication/google_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def create_and_login_user(org, name, email):
logger.debug("Creating user object (%r)", name)
user_object = models.User(org=org, name=name, email=email, group_ids=[org.default_group.id])
models.db.session.add(user_object)
models.db.session.commit()

login_user(user_object, remember=True)

Expand Down

0 comments on commit 51a35d3

Please sign in to comment.