Problem with login by email

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
klappo
Posts: 3
Joined: 31 Oct 2017, 13:42

Problem with login by email

Post by klappo »

Hi,
I have enabled the email login option ($ g_email_login_enabled = ON;) but the users have accounts with addresses where the domain looks like: domainexample.network. I have checked that the problem is with the domain long and exactly with ".network"
The system only accepts 4 characters after dot, ie ".netw"
Example user@domainexample.netw is ok but user@domainexample.network is wrong and give me error "Your account may be disabled or blocked or the username/password you entered is incorrect."

Can anyone help?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with login by email

Post by atrol »

You could deactivate e-mail validation by adding the following line to file config_inc.php

Code: Select all

$g_validate_email = OFF;
Please use Search before posting and read the Manual
klappo
Posts: 3
Joined: 31 Oct 2017, 13:42

Re: Problem with login by email

Post by klappo »

I checked that, this parametr has no effect on it, the problem still exists
klappo
Posts: 3
Joined: 31 Oct 2017, 13:42

Re: Problem with login by email

Post by klappo »

Nobody has such a problem? Any other ideas?
rkarmann
Posts: 66
Joined: 24 Nov 2017, 10:00
Location: Lille, France

Re: Problem with login by email

Post by rkarmann »

Take a look at the email_api, you might be able to find out wich function is responsible for this issue.
--> Between line 90 and 190 (email validation functions, including regex)

Enable the LOG and you'll see how is user's email adress processed.
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.
Post Reply