From 046fb62a52654318d82a0805aa7ee68965cdbb45 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 26 Mar 2016 18:43:54 +0100 Subject: [PATCH] core (memory/params): fixed exception when setting an empty password --- src/memory/params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/memory/params.py b/src/memory/params.py index d4c88add..5cc303fd 100644 --- a/src/memory/params.py +++ b/src/memory/params.py @@ -879,6 +879,8 @@ class Params(object): d.addCallback(lambda dummy: PasswordHasher.hash(value)) # profile password is hashed (empty value stays empty) elif value: # other non empty passwords are encrypted with the personal key d = BlockCipher.encrypt(personal_key, value) + else: + d = defer.succeed(value) else: d = defer.succeed(value)