mirror of
https://github.com/nextcloud/passman.git
synced 2025-12-09 21:26:00 +08:00
Add null-check to further improve errorchecking for missing compromisedfield for pre 2.3.0 shares
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
b5257eecd0
commit
1d0fdfd957
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@
|
|||
try {
|
||||
field_decrypted_value = EncryptService.decryptString(fieldValue, sharedKey);
|
||||
} catch (e) {
|
||||
if(field === 'compromised'){
|
||||
if(field === 'compromised' && fieldValue === null){
|
||||
//old shares do not have compromised set, so we need to make sure that it will be set for version 2.3.0
|
||||
//credentials from 2.3.0 onwards have compromised already set, and don't need to worry about that.
|
||||
//if compromised is not the issue, break and throw an error
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue