mirror of
https://github.com/silentsakky/zarafa-webapp-passwd
synced 2026-08-04 22:43:25 +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
|
|
@ -6,7 +6,7 @@ Ext.namespace('Zarafa.plugins.passwd');
|
|||
* The copyright string holding the copyright notice for the Zarafa passwd Plugin.
|
||||
*/
|
||||
Zarafa.plugins.passwd.ABOUT = ""
|
||||
+ "<p>Copyright (C) 2013 Saket Patel <silentsakky@gmail.com></p>"
|
||||
+ "<p>Copyright (C) 2017 Saket Patel <silentsakky@gmail.com></p>"
|
||||
|
||||
+ "<p>This program is free software: you can redistribute it and/or modify "
|
||||
+ "it under the terms of the GNU Affero General Public License as "
|
||||
|
|
|
|||
3
js/external/PasswordMeter.js
vendored
3
js/external/PasswordMeter.js
vendored
|
|
@ -62,7 +62,8 @@ Ext.ux.form.field.PasswordMeter = Ext.extend(Ext.form.TextField, {
|
|||
|
||||
|
||||
var width = this.getEl().getWidth();
|
||||
this.strengthMeterID = newID = Ext.id();
|
||||
var newID = Ext.id();
|
||||
this.strengthMeterID = newID;
|
||||
this.scoreBarID = Ext.id();
|
||||
var objMeter = Ext.DomHelper.insertAfter(this.getEl(), {
|
||||
tag: "div",
|
||||
|
|
|
|||
|
|
@ -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