[password-resets] Let it fail (again)
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets] Let it fail (again)
- Date: Mon, 23 Nov 2020 12:40:52 +0000 (UTC)
commit 517a9cab261252a88121e77e6540e119893372c7
Author: Andrea Veri <averi redhat com>
Date: Mon Nov 23 13:40:28 2020 +0100
Let it fail (again)
app.py | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/app.py b/app.py
index b59375c..36ec3fb 100644
--- a/app.py
+++ b/app.py
@@ -96,18 +96,18 @@ def form_reset_post(request: Request, token: str, password: str = Form(...)):
t = Session.query(Token).filter(Token.token==token).first()
if t:
- try:
- glu.replace_ldap_password(t.username, newpassword['userPassword'])
+ #try:
+ glu.replace_ldap_password(t.username, newpassword['userPassword'])
- t.claimed = 1
- Session.commit()
- Session.remove()
+ t.claimed = 1
+ Session.commit()
+ Session.remove()
- return templates.TemplateResponse('general-form.html', context={'request': request,
'passwordsuccess': True})
- except:
- Session.remove()
+ # return templates.TemplateResponse('general-form.html', context={'request': request,
'passwordsuccess': True})
+ #except:
+ # Session.remove()
- return templates.TemplateResponse('general-form.html', context={'request': request,
'passworderror': True})
+ # return templates.TemplateResponse('general-form.html', context={'request': request,
'passworderror': True})
def send_email(email, token):
import imghdr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]