Merge branch 'master' of https://bitbucket.org/yackob03/quay
This commit is contained in:
commit
5778076abb
6 changed files with 21 additions and 8 deletions
|
@ -226,7 +226,11 @@ def github_oauth_callback():
|
|||
@app.route('/confirm', methods=['GET'])
|
||||
def confirm_email():
|
||||
code = request.values['code']
|
||||
user = model.confirm_user_email(code)
|
||||
|
||||
try:
|
||||
user = model.confirm_user_email(code)
|
||||
except model.DataModelException as ex:
|
||||
return redirect(url_for('signin'))
|
||||
|
||||
common_login(user)
|
||||
|
||||
|
|
Reference in a new issue