-
Notifications
You must be signed in to change notification settings - Fork 378
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
fix: magiclink failing due to passwordStrength check #1769
fix: magiclink failing due to passwordStrength check #1769
Conversation
deb465d
to
07a44bc
Compare
999c09e
to
fb1a58c
Compare
Pull Request Test Coverage Report for Build 11013705366Details
💛 - Coveralls |
@klajdi369 Want to address the comments so we merge this? |
Hi, yes, most likely will do within this week, as I have not had the time to get back to this PR. |
Co-authored-by: Chris Stockton <180184+cstockton@users.noreply.github.com>
3bc0724
to
d2fe8f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for updating this and I really appreciate you adding a test, great work!
🤖 I have created a release *beep* *boop* --- ## [2.162.0](v2.161.0...v2.162.0) (2024-09-27) ### Features * add support for migration of firebase scrypt passwords ([#1768](#1768)) ([ba00f75](ba00f75)) ### Bug Fixes * apply authorized email restriction to non-admin routes ([#1778](#1778)) ([1af203f](1af203f)) * magiclink failing due to passwordStrength check ([#1769](#1769)) ([7a5411f](7a5411f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
#1761
What is the new behavior?
Now the password should generate secure enough with the necessary password requirements specified in environment variables.
Additional context
Basically this line in /internal/api/magic_link.go
password.Generate(64, 10, 1, false, true)
Generates an invalid value for this line in /internal/api/signup.go
if err := a.checkPasswordStrength(ctx, p.Password); err != nil {