Skip to content

Commit 165c3b9

Browse files
committed
Minor changes
1 parent 2fdb628 commit 165c3b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

01-Login/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040
# Controllers API
4141
@APP.route('/')
4242
def home():
43-
return render_template('home.html', env=env)
43+
return render_template('home.html')
4444

4545

4646
@APP.route('/callback')
4747
def callback_handling():
4848
resp = auth0.authorized_response()
4949
if resp is None:
50-
return 'Access denied: reason=%s error=%s' % (
50+
raise Exception('Access denied: reason=%s error=%s' % (
5151
request.args['error_reason'],
5252
request.args['error_description']
53-
)
53+
))
5454

5555
return render_template('dashboard.html')
5656

0 commit comments

Comments
 (0)