8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 14:42:25 +00:00

Mettre les bons noms de variables c'est mieux

This commit is contained in:
Yoann Pétri 2018-07-16 19:24:15 +02:00 committed by root
parent dd672b5cdb
commit badc111491

View file

@ -959,12 +959,12 @@ def process(request, token):
if req.type == Request.PASSWD: if req.type == Request.PASSWD:
user = req.user user = req.user
user.mail_verification = True user.verified = True
user.save() user.save()
return process_passwd(request, req) return process_passwd(request, req)
elif req.type == Request.EMAIL: elif req.type == Request.EMAIL:
user = req.user user = req.user
user.mail_verification = True user.verified= True
user.save() user.save()
return redirect(reverse('login')) return redirect(reverse('login'))
else: else: