I need users to login by their email address. This works when I change the value in ProcessLogin.module
122 protected $useEmailLogin = null;
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