Synchronisation
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -36,7 +36,7 @@ def modifier_mot_passe(request):
|
||||
user = User.objects.get(username=username)
|
||||
|
||||
if not user.check_password(ancien_mdp):
|
||||
return JsonResponse({"error": "Le mot de passe actuel est incorrect."}, status=400)
|
||||
return JsonResponse({"error": "Le mot de passe actuel est incorrect."}, status=400)
|
||||
|
||||
if nouveau_mdp != confirmation_mdp:
|
||||
return JsonResponse({"error": "Le nouveau mot de passe et sa confirmation ne correspondent pas."}, status=400)
|
||||
|
||||
Reference in New Issue
Block a user