[sysadmin-bin] Decode it back to utf-8 once it has been reset



commit 82a58b7427191a496994e18a42b68f58bb0fc324
Author: Andrea Veri <averi redhat com>
Date:   Thu Nov 12 19:43:19 2020 +0100

    Decode it back to utf-8 once it has been reset

 reset-my-password.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/reset-my-password.py b/reset-my-password.py
index 1fac1a0..eccee5f 100755
--- a/reset-my-password.py
+++ b/reset-my-password.py
@@ -60,7 +60,7 @@ def update_password(userid):
 
     glu.replace_ldap_password(userid, newpassword['userPassword'])
 
-    send_password_to_user(getattr_name, getattr_mail, newpassword['userPassword'])
+    send_password_to_user(getattr_name, getattr_mail, newpassword['userPassword'].decode('utf-8'))
 
 
 def send_password_to_user(name, email, password):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]