Forum Discussion
mike_drennen_16
Cirrus
May 06, 2016Verify that user name when logging in is an Email address
We have implemented an APM on our system to bring multiple systems into one central portal. It works well as long as everything is entered correctly, but I discovered one bug today. They way it wor...
- May 06, 2016
Sorry, please locate the foreach loop below and add a case for email and it should works now :
switch( $field_settings["type"] ){ case "select": foreach( $options as &$o ){ $fieldStr .= "{$o}"; } $fieldStr = "{$fieldStr}"; break; case "radio": foreach( $options as $k=>&$o ){ $fieldStr .= "{$o}"; } break; case "checkbox": case "text": case "password": $fieldStr = ""; break; case "email": $fieldStr = ""; break; }
Yann_Desmarest_
Nacreous
May 06, 2016Sorry, please locate the foreach loop below and add a case for email and it should works now :
switch( $field_settings["type"] ){
case "select":
foreach( $options as &$o ){
$fieldStr .= "{$o}";
}
$fieldStr = "{$fieldStr}";
break;
case "radio":
foreach( $options as $k=>&$o ){
$fieldStr .= "{$o}";
}
break;
case "checkbox":
case "text":
case "password":
$fieldStr = "";
break;
case "email":
$fieldStr = "";
break;
}
- Yann_Desmarest_May 06, 2016
Nacreous
Just to precise that the email input is html5. It may be not supported on F5. If the above code fails. I would recommend to create a macro on the vpe that include the logon page with an additional branch that look for an email within the username variable (you can use a tcl expr). If the user goes to the fallback branch, You loop until the user set something that can be à valid email address in the field. - mike_drennen_16May 06, 2016
Cirrus
That works perfect. thanks a lot.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects