mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix des bans
This commit is contained in:
parent
489439fd63
commit
36b038bec1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue