summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/web/auth.py')
-rw-r--r--deluge/ui/web/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py
index e344eaa99..fa9504954 100644
--- a/deluge/ui/web/auth.py
+++ b/deluge/ui/web/auth.py
@@ -198,7 +198,7 @@ class Auth(JSONComponent):
"""
log.debug('Changing password')
salt = hashlib.sha1(os.urandom(32)).hexdigest()
- s = hashlib.sha1(salt)
+ s = hashlib.sha1(salt.encode('utf-8'))
s.update(new_password.encode('utf8'))
self.config['pwd_salt'] = salt
self.config['pwd_sha1'] = s.hexdigest()