The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
|
Client Password Options - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Client Password Options (/showthread.php?tid=683) |
Client Password Options - bill09 - May 3rd, 2010 Hi Ben, Two things: 1. When adding a new client under Admin, I'd like to use an email address in the 'password' field, but it only allows alpha-numeric chars (is there a max amount of chars?). Where can I change or disable that validation? I looked in the add.php file and found: rules.push("is_alpha,password,{$LANG 'validation_invalid_client_password']}"); Tried changing 'is_alpha' to 'valid_email' but got the same result. 2. If item #1 is can be done, then I'd like to give them the ability to show the password while typing since email addresses can be long. Something like this: http://ajaxdump.com/2009/08/19/show-password-show-or-mask-password-checkbox-jquery-plugin/ Thanks, Bill RE: Client Password Options - Ben - May 6th, 2010 Hi Bill, You'll also need to tweak the ft_add_client() function, found at the top of /global/code/administrator.php. Hope this helps! By the way, it looks like in 2.0.2 I'll be adding some new security measures - including options for the password itself, length, contents, and other such stuff. The default settings will be just like now, but for those instances where security is a concern, you can add a few checks to ensure the passwords meet a certain criteria. I'll be sure to include the option to control the characters permitted. - Ben |