[password-resets] GNOME LDAP utils doesn't want the entire dict feeded in, just the individual key.
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets] GNOME LDAP utils doesn't want the entire dict feeded in, just the individual key.
- Date: Mon, 23 Nov 2020 12:34:31 +0000 (UTC)
commit 0233aaec8bc84feee362eacc15a4959d921b4e60
Author: Andrea Veri <averi redhat com>
Date: Mon Nov 23 13:33:42 2020 +0100
GNOME LDAP utils doesn't want the entire dict feeded in, just the individual key.
app.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app.py b/app.py
index e0411f1..b59375c 100644
--- a/app.py
+++ b/app.py
@@ -97,7 +97,7 @@ 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)
+ glu.replace_ldap_password(t.username, newpassword['userPassword'])
t.claimed = 1
Session.commit()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]