[chgpass] Better encoding support.
This commit is contained in:
parent
6e98266230
commit
4950f104ff
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue