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 revisionBoth sides next revision
software:dailydata:libraries:php_user [2021/08/25 19:41] rodolicosoftware:dailydata:libraries:php_user [2021/08/25 21:24] rodolico
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