The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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