Commit 4950f104 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[chgpass] Better encoding support.

parent 6e982662
......@@ -25,7 +25,7 @@ import lc_ldap.attributs
import lc_ldap.objets
import smtplib
encoding = "UTF-8"
encoding = sys.stdout.encoding or "UTF-8"
current_user = os.getenv("SUDO_USER") or os.getenv("USER") or os.getenv("LOGNAME") or getpass.getuser()
def check_password(password, no_cracklib=False, dialog=False):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment