Fix crash on unimported gettext

This commit is contained in:
rubenwardy 2022-01-08 01:47:25 +00:00
parent b62bdb016a
commit baa8c871b0
2 changed files with 2 additions and 2 deletions

@ -21,7 +21,7 @@ from flask_mail import Mail
from flask_github import GitHub
from flask_wtf.csrf import CSRFProtect
from flask_flatpages import FlatPages
from flask_babel import Babel
from flask_babel import Babel, gettext
from flask_login import logout_user, current_user, LoginManager
import os, redis
from app.markdown import init_markdown, MARKDOWN_EXTENSIONS, MARKDOWN_EXTENSION_CONFIG

@ -248,7 +248,7 @@ def handle_set_password(form):
one = form.password.data
two = form.password2.data
if one != two:
flash(gettext("Passwords do not much"), "danger")
flash(gettext("Passwords do not match"), "danger")
return
addAuditLog(AuditSeverity.USER, current_user, "Changed their password", url_for("users.profile", username=current_user.username))