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

[MM-61910] refactor: log users by email #873

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

fmartingr
Copy link
Contributor

Summary

Refactors the way the users log in to use login by email instead of by username. The problem with this was that when providing a txt file with a list of email/passwords the login flow used the username extracted from the email and that may not be accurate for non-synthetic dumps.

This pull request changes the login flow to use GetLoginByEmail instead of GetLoginByUsername but still returns the internal user object with the extracted username from the email.

Ticket Link

https://mattermost.atlassian.net/browse/MM-61910

@fmartingr fmartingr added the 2: Dev Review Requires review by a core committer label Dec 13, 2024
@fmartingr fmartingr self-assigned this Dec 13, 2024
Copy link
Contributor

@streamer45 streamer45 left a comment

Choose a reason for hiding this comment

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

Makes sense 👍

api/agent.go Outdated Show resolved Hide resolved
api/agent.go Show resolved Hide resolved
Copy link
Member

@agnivade agnivade left a comment

Choose a reason for hiding this comment

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

Thanks!

@fmartingr fmartingr removed the 2: Dev Review Requires review by a core committer label Jan 8, 2025
@fmartingr fmartingr merged commit 49fb24a into master Jan 8, 2025
1 check passed
@fmartingr fmartingr deleted the refactor/agent-login-by-email branch January 8, 2025 07:12
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.

3 participants