Skip to content

Commit

Permalink
fixed broken redirect if incorrect login
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Aug 21, 2023
1 parent 70e1140 commit 0486407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from functools import wraps
from logging import log, warning
from os import getenv, environ
from os import environ, getenv

from flask import Flask, redirect, render_template, request, session, url_for
from flask import Flask, redirect, render_template, request, session
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
from markdown import markdown
Expand Down Expand Up @@ -257,4 +257,4 @@ def logging_in():
warning(
f"{request.remote_addr} failed to log in with password {request.form['password']}"
)
return redirect(url_for(LOGIN_URL))
return redirect(LOGIN_URL)

0 comments on commit 0486407

Please sign in to comment.