This topic is locked
[SOLVED]

How to log in only with small characters ?

5/8/2024 2:36:33 AM
PHPRunner General questions
I
I author

Hello, how to ensure that the email address is in small characters when logging in? After logging in to the application, an input field can be adjusted with "field events" (strotolower).
but this does not work on the login screen because an error message keeps appearing. Thanks

C
cristi 5/8/2024

Fiels events can be used even before login using "before login" event from login page.

To check for lower case with message to the user you write in the event above something like this:

if(!ctype_lower($values['field_name']))
{
$message="Only lower case allowed!";
}

When you ask for help you should give all the details that you can think about: in your case the error message.

I
I author 5/8/2024

Thanks for the working code, works fine.