We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fdb628 commit 165c3b9Copy full SHA for 165c3b9
1 file changed
01-Login/server.py
@@ -40,17 +40,17 @@
40
# Controllers API
41
@APP.route('/')
42
def home():
43
- return render_template('home.html', env=env)
+ return render_template('home.html')
44
45
46
@APP.route('/callback')
47
def callback_handling():
48
resp = auth0.authorized_response()
49
if resp is None:
50
- return 'Access denied: reason=%s error=%s' % (
+ raise Exception('Access denied: reason=%s error=%s' % (
51
request.args['error_reason'],
52
request.args['error_description']
53
- )
+ ))
54
55
return render_template('dashboard.html')
56
0 commit comments