X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAuth.py;fp=PLC%2FAuth.py;h=33f60c24059bdb4469e31bd3e1659ee10ac9375e;hb=f9b4cbd4cee0c41047fb6a140bb50e8cc1f79b55;hp=afde8c1261ec252de10858663243e8ad803e4ea6;hpb=e5831ff536668c94f108435395550f6339452ed6;p=plcapi.git diff --git a/PLC/Auth.py b/PLC/Auth.py index afde8c1..33f60c2 100644 --- a/PLC/Auth.py +++ b/PLC/Auth.py @@ -324,7 +324,7 @@ class PasswordAuth(Auth): "PasswordAuth: Maintenance account password verification failed") else: # Compare encrypted plaintext against encrypted password stored in the DB - plaintext = auth['AuthString'].encode(method.api.encoding) + plaintext = auth['AuthString'] password = person['password'] # Protect against blank passwords in the DB