Skip to content

Commit 72ffb3b

Browse files
committed
increase default password length validation to minimum 12 characters
1 parent a259ff3 commit 72ffb3b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module Test
119119

120120
# Range validation for password length
121121
mattr_accessor :password_length
122-
@@password_length = 6..128
122+
@@password_length = 12..128
123123

124124
# The time the user will be remembered without asking for credentials again.
125125
mattr_accessor :remember_for

lib/generators/templates/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178

179179
# ==> Configuration for :validatable
180180
# Range for password length.
181-
config.password_length = 6..128
181+
config.password_length = 12..128
182182

183183
# Email regex used to validate email formats. It simply asserts that
184184
# one (and only one) @ exists in the given string. This is mainly

0 commit comments

Comments
 (0)