Forum Discussion

mike_drennen_16's avatar
May 06, 2016
Solved

Verify 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...
  • Yann_Desmarest_'s avatar
    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;
        }