Jump to content

Recommended Posts

Posted

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

Posted

You can change that through the module settings. In your backend, go to Modules -> Configure -> ProcessLogin. There you'll find the Login Type setting which you can set to allow login with username, email or both.

  • Like 3

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
×
×
  • Create New...