Commit 19177f7f authored by klafyvel's avatar klafyvel
Browse files

Merge branch 'fix_ban' into 'master'

Fix des bans

See merge request federez/re2o!77
parents 489439fd 36b038be
......@@ -358,7 +358,7 @@ def add_ban(request, user, userid):
request,
"Attention, cet utilisateur a deja un bannissement actif"
)
return form({'userform': ban, 'action_name': 'Ajouter un ban'}, 'users/user.html', request)
return form({'userform': ban, 'action_name': 'Ajouter un ban'}, 'users/user.html', request)
@login_required
@can_edit(Ban)
......@@ -828,7 +828,7 @@ def process_passwd(request, req):
reversion.set_comment("Réinitialisation du mot de passe")
req.delete()
messages.success(request, "Le mot de passe a changé")
return redirect(reverse('index'))
return redirect(reverse('index'))
return form({'userform': u_form, 'action_name': 'Changer le mot de passe'}, 'users/user.html', request)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment