mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-27 01:52:56 +08:00
Merge branch 'passwordAuditFix'
This commit is contained in:
commit
7d378e681b
1 changed files with 14 additions and 10 deletions
|
@ -155,6 +155,7 @@
|
|||
for (var i = 0; i < vault.credentials.length; i++) {
|
||||
var c = angular.copy(vault.credentials[i]);
|
||||
if (c.password && c.hidden === 0) {
|
||||
try {
|
||||
c = CredentialService.decryptCredential(c);
|
||||
if (c.password) {
|
||||
var zxcvbn_result = zxcvbn(c.password);
|
||||
|
@ -167,6 +168,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
} catch (e){
|
||||
console.warn(e);
|
||||
}
|
||||
|
||||
}
|
||||
//@todo loop custom fields (if any and check secret fields
|
||||
|
|
Loading…
Reference in a new issue