Skip to content

Commit

Permalink
Redirect to '/' when you visit '/login/' directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje authored Jul 25, 2018
1 parent 2880064 commit ff302ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def authenticate():

@app.route('/login', methods=['GET', 'POST'])
def login():
target = request.headers.get('X-Original-URI', '')
target = request.headers.get('X-Original-URI', '/')
form = LoginForm(target=target)
if form.validate_on_submit():
username = form.login.data
Expand Down

0 comments on commit ff302ef

Please sign in to comment.