mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-02 11:08:01 +00:00
Fix the login view when no next page is provided
This commit is contained in:
@@ -20,7 +20,7 @@ def login():
|
||||
user = models.User.login(form.email.data, form.pw.data)
|
||||
if user:
|
||||
flask_login.login_user(user)
|
||||
endpoint = flask.request.args.get('next')
|
||||
endpoint = flask.request.args.get('next', '.index')
|
||||
return flask.redirect(flask.url_for(endpoint)
|
||||
or flask.url_for('.index'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user