mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Fix crash on unimported gettext
This commit is contained in:
parent
b62bdb016a
commit
baa8c871b0
@ -21,7 +21,7 @@ from flask_mail import Mail
|
|||||||
from flask_github import GitHub
|
from flask_github import GitHub
|
||||||
from flask_wtf.csrf import CSRFProtect
|
from flask_wtf.csrf import CSRFProtect
|
||||||
from flask_flatpages import FlatPages
|
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
|
from flask_login import logout_user, current_user, LoginManager
|
||||||
import os, redis
|
import os, redis
|
||||||
from app.markdown import init_markdown, MARKDOWN_EXTENSIONS, MARKDOWN_EXTENSION_CONFIG
|
from app.markdown import init_markdown, MARKDOWN_EXTENSIONS, MARKDOWN_EXTENSION_CONFIG
|
||||||
|
@ -248,7 +248,7 @@ def handle_set_password(form):
|
|||||||
one = form.password.data
|
one = form.password.data
|
||||||
two = form.password2.data
|
two = form.password2.data
|
||||||
if one != two:
|
if one != two:
|
||||||
flash(gettext("Passwords do not much"), "danger")
|
flash(gettext("Passwords do not match"), "danger")
|
||||||
return
|
return
|
||||||
|
|
||||||
addAuditLog(AuditSeverity.USER, current_user, "Changed their password", url_for("users.profile", username=current_user.username))
|
addAuditLog(AuditSeverity.USER, current_user, "Changed their password", url_for("users.profile", username=current_user.username))
|
||||||
|
Loading…
Reference in New Issue
Block a user