Jump to content

Where to put $allowMail variable for login with email


kyksh
 Share

Recommended Posts

Hi!

I need users to login by their email address. This works when I change the value in ProcessLogin.module

 122     protected $useEmailLogin = null;

to

122     protected $useEmailLogin = true;

What would be a recommended way to enable this?

There's this line in ProcessLogin.module:

  15  * @property bool|int $allowEmail Whether or not email login is allowed (0|false=off, 1|true=Yes, 2=Yes or name also allowed)

But I can't figure out how to set this. I tried next to $useEmailLogin in ProcessLogin.module and in config.php, but neither takes effect.

BTW I tried module LoginWithEmail but it seems outdated. My PW version is 3.0.165

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...