mirror of
https://github.com/silentsakky/zarafa-webapp-passwd
synced 2026-08-05 06:51:16 +02:00
- move password checking to client side
- add flag to enable/disable strict password checking - use entryptionstore to store/retrieve passwords - remove builds directory, we will be maintaining builds using release versions - update documentation
This commit is contained in:
parent
3cafedcf3a
commit
a9549464e9
13 changed files with 103 additions and 126 deletions
|
|
@ -72,14 +72,15 @@ Zarafa.plugins.passwd.settings.SettingsPasswdWidget = Ext.extend(Zarafa.settings
|
|||
} else if(!this.passwdPanel.getForm().isValid()) {
|
||||
Ext.MessageBox.alert(dgettext("plugin_passwd", 'Error'), dgettext("plugin_passwd", 'One or more fields does contain errors.'));
|
||||
return false;
|
||||
} else {
|
||||
} else if (container.getSettingsModel().get("zarafa/v1/plugins/passwd/enable_strict_check")) {
|
||||
// do a quick score check:
|
||||
if(this.passwdPanel.new_password.getScore() < 70) {
|
||||
Ext.MessageBox.alert(dgettext("plugin_passwd", 'Error'), dgettext("plugin_passwd", 'Password is weak. Password should contain capital, non-capital letters and numbers. Password should have 8 to 20 characters.'));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue