Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to login by email #12543

Merged
merged 3 commits into from Feb 12, 2018
Merged

Possibility to login by email #12543

merged 3 commits into from Feb 12, 2018

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Feb 7, 2018

This is quite simple solution for #11959.

@sgiehl sgiehl added the Needs Review PRs that need a code review label Feb 7, 2018
@@ -118,6 +121,19 @@ function login($messageNoAccess = null, $infoMessage = false)
return $view->render();
}

protected function getLoginFromLoginOrEmail($loginOrEmail)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be good to have this method ideally outside the controller or make it at least private so it can for sure not be executed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the method to private

@tsteur
Copy link
Member

tsteur commented Feb 8, 2018

Does "lost your password" work with email? Haven't tested.

@tsteur
Copy link
Member

tsteur commented Feb 8, 2018

Tested successful logins / and failed logins: Works and no information is exposed on unsuccessful logins etc 👍

@sgiehl
Copy link
Member Author

sgiehl commented Feb 8, 2018

Password resetting already worked with email. See https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/Login/PasswordResetter.php#L161-L176

@sgiehl sgiehl added this to the 3.3.1 milestone Feb 8, 2018
@sgiehl sgiehl merged commit a3b7afd into 3.x-dev Feb 12, 2018
@sgiehl sgiehl deleted the loginbyemail branch February 12, 2018 07:31
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants