diff --git a/app/templates/auth/change_password.html b/app/templates/auth/change_password.html index 2bec77622..c6c723762 100644 --- a/app/templates/auth/change_password.html +++ b/app/templates/auth/change_password.html @@ -23,7 +23,7 @@ {% block app_content %}

Modification du compte ScoDoc {{form.user_name.data}}

-

Identifiez-vous avez votre mot de passe actuel

+

Identifiez-vous avec votre mot de passe actuel

{{ form.user_name }} diff --git a/app/views/users.py b/app/views/users.py index 1d10e0f77..608eb9ab7 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -753,7 +753,7 @@ def user_info_page(user_name=None): if not user_name: user = current_user else: - user = User.query.filter_by(user_name=user_name).first() + user = User.query.filter_by(user_name=str(user_name)).first() if not user: raise ScoValueError("invalid user_name")