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

Allow superusers login using email #3677

Closed
wants to merge 1 commit into from

Conversation

daguiler
Copy link
Contributor

Fixes #3676

Summary

The logic in Login.ascx.cs was only authenticating users by email when the users existed in current portal, which is not the case when super users attempt to log in.
I changed this logic to search not only for portal users but also for super users as well. This is accomplished by calling GetUsersByEmail instead of GetUserByEmail.

@bdukes
Copy link
Contributor

bdukes commented Apr 13, 2020

Duplicate of #3659

@bdukes bdukes marked this as a duplicate of #3659 Apr 13, 2020
@bdukes
Copy link
Contributor

bdukes commented Apr 13, 2020

I think @donker's fix in #3659 of updating GetUserByEmail to work with super users is better than switching to GetUsersByEmail. Let me know if I'm missing anything, but looks like this issue will be addressed in 9.6.0 either way. Thanks!

@bdukes bdukes closed this Apr 13, 2020
@daguiler
Copy link
Contributor Author

Oh man... I can't believe this. What a waste of time.
Neither #3658 nor #3660 popped up as potential duplicates when I created #3676.
And I even checked out latest code, including @donker 's fix, except I did not install the very latest 9.5.2 CI build, causing the stored procedure not to get updated. So I was able to reproduce the issue.

@donker
Copy link
Contributor

donker commented Apr 14, 2020

Sorry to hear about time wasted, Daniel. It seems we were both struggling with the same issues at the same time.

@daguiler daguiler deleted the bugfix/DNN-36360 branch May 1, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Email Address as Username option doesn't handle super users
3 participants