Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed May 19, 2016
1 parent ccaa662 commit 972b186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def index():

@app.route('/login')
def login():
if current_user.is_authenticated():
if current_user.is_authenticated:
return redirect(url_for('index'))
google = get_google_auth()
auth_url, state = google.authorization_url(
Expand All @@ -112,7 +112,7 @@ def login():

@app.route('/gCallback')
def callback():
if current_user is not None and current_user.is_authenticated():
if current_user is not None and current_user.is_authenticated:
return redirect(url_for('index'))
if 'error' in request.args:
if request.args.get('error') == 'access_denied':
Expand Down

0 comments on commit 972b186

Please sign in to comment.