mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 00:30:21 +00:00
jappixmini: throw error when decrypt_password fails
This commit is contained in:
parent
80a0ccb6c8
commit
74799ed141
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ function jappixmini_addon_decrypt_password(encrypted_password, callback) {
|
|||
|
||||
// remove \0
|
||||
first_null = password.indexOf("\0")
|
||||
// TODO: check first_null==null
|
||||
if (first_null==-1) throw "Decrypted password does not contain \\0";
|
||||
password = password.substr(0, first_null);
|
||||
|
||||
callback(password);
|
||||
|
|
Loading…
Reference in a new issue