[password-resets] Turn the password into a bytestring
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets] Turn the password into a bytestring
- Date: Mon, 23 Nov 2020 12:43:25 +0000 (UTC)
commit 4d0a9ebc73477fc998d40053af1aac0a12183974
Author: Andrea Veri <averi redhat com>
Date: Mon Nov 23 13:43:03 2020 +0100
Turn the password into a bytestring
app.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app.py b/app.py
index b59375c..068e01a 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['userPassword'])
+ glu.replace_ldap_password(t.username, newpassword['userPassword'].encode())
t.claimed = 1
Session.commit()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]