Skip to content

Commit

Permalink
Do not allow empty passwords on /password/reset/confirm/{token} form
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbayless committed Oct 24, 2023
1 parent 5bc21da commit be68888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/security/src/main/SecurityForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class SecurityForm(
import SecurityForm.*

private val newPasswordField =
text(minLength = 4, maxLength = 999).verifying(PasswordCheck.newConstraint)
nonEmptyText(minLength = 4, maxLength = 999).verifying(PasswordCheck.newConstraint)
private def newPasswordFieldForMe(using me: Me) =
newPasswordField.verifying(PasswordCheck.sameConstraint(me.username into UserStr))

Expand Down

0 comments on commit be68888

Please sign in to comment.