User Tools

Site Tools


software:dailydata:libraries:php_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
software:dailydata:libraries:php_user [2021/08/25 19:41] rodolicosoftware:dailydata:libraries:php_user [2021/08/25 21:31] rodolico
Line 13: Line 13:
 You can get a copy of this from our subversion repository You can get a copy of this from our subversion repository
 <code bash> <code bash>
-svn co http://svn.dailydata.net/svn/php_users/stable php_users+svn co http://svn.dailydata.net/svn/php_users/tags/stable php_users
 </code> </code>
 My working copy is at My working copy is at
Line 124: Line 124:
                      'hint'     => 'E-Mail Address',                      'hint'     => 'E-Mail Address',
                      // a regex to run it against to verify it is ok                      // a regex to run it against to verify it is ok
-                     'filter'   => '/[-_a-z0-9.]+@[_a-z0-9]\.[a-z0-9]/i',+                     'filter'   => '/^[-_a-z0-9.]+@[_a-z0-9]+\.[a-z0-9]+$/i',
                                            
                      // == for Data Source ==                      // == for Data Source ==
Line 199: Line 199:
  
 == filter == == filter ==
-If set, this is assumed to be a regular express. The result of the input is checked against the regex. If it does not match the regex, the update is declined and an error message displayed. By default, the username can only be alpha-numeric and an underscore, so the regex '/[a-zA-Z0-9_]/' is set as the filter. If a user puts a period in their password, it will be rejected. Validity of the regex is not checked.+If set, this is assumed to be a regular express. The result of the input is checked against the regex. If it does not match the regex, the update is declined and an error message displayed. By default, the username can only be alpha-numeric and an underscore, so the regex '/^[a-zA-Z0-9_]+$/' is set as the filter. If a user puts a period in their password, it will be rejected. Validity of the regex is not checked.
  
 == size == == size ==
software/dailydata/libraries/php_user.txt · Last modified: 2021/09/22 01:30 by rodolico