Revision 8d5795b4 snf-cyclades-app/synnefo/db/migrations/0066_add_iv.py
b/snf-cyclades-app/synnefo/db/migrations/0066_add_iv.py | ||
---|---|---|
69 | 69 |
plaintext = plaintext[SALT_LEN:] |
70 | 70 |
|
71 | 71 |
if salt != pure_salt: |
72 |
# Can not decrtypt password
|
|
73 |
raise CorruptedPassword("Can not decrypt password. Check the key")
|
|
72 |
# Cannot decrtypt password |
|
73 |
raise CorruptedPassword("Cannot decrypt password. Check the key") |
|
74 | 74 |
else: |
75 | 75 |
return plaintext |
76 | 76 |
|
... | ... | |
108 | 108 |
plaintext = plaintext[SALT_LEN:] |
109 | 109 |
|
110 | 110 |
if salt != pure_salt: |
111 |
# Can not decrtypt password
|
|
112 |
raise CorruptedPassword("Can not decrypt password. Check the key")
|
|
111 |
# Cannot decrtypt password |
|
112 |
raise CorruptedPassword("Cannot decrypt password. Check the key") |
|
113 | 113 |
else: |
114 | 114 |
return plaintext |
115 | 115 |
|
Also available in: Unified diff