-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: magiclink failing due to passwordStrength check (#1769)
## 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 { --------- Co-authored-by: Chris Stockton <180184+cstockton@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters