Skip to content

Commit

Permalink
avoid Flask debug error message about strict slashes (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish authored Feb 20, 2019
1 parent 77dcc80 commit 1ad0fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/app/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function HomeCtrl(Events, Dashboard, Query, $http, currentUser, toastr) {
});

this.verifyEmail = () => {
$http.post('/verification_email').success(({ message }) => {
$http.post('/verification_email/').success(({ message }) => {
toastr.success(message);
});
};
Expand Down
2 changes: 1 addition & 1 deletion redash/handlers/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def forgot_password(org_slug=None):
return render_template("forgot.html", submitted=submitted)


@routes.route(org_scoped_rule('/verification_email'), methods=['POST'])
@routes.route(org_scoped_rule('/verification_email/'), methods=['POST'])
def verification_email(org_slug=None):
if not current_user.is_email_verified:
send_verify_email(current_user, current_org)
Expand Down

0 comments on commit 1ad0fa6

Please sign in to comment.