mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 13:28:49 +01:00
Update the maximum password length
This commit is contained in:
parent
4632208699
commit
dd6698b8a1
2 changed files with 3 additions and 3 deletions
|
|
@ -44,8 +44,8 @@ class UserTest < ActiveSupport::TestCase
|
|||
|
||||
def test_validate_long_password
|
||||
assert_no_difference 'User.count' do
|
||||
u = create_user :password => generate_random_string(41)
|
||||
assert_equal "is too long (maximum is 40 characters)", u.errors[:password][0]
|
||||
u = create_user :password => generate_random_string(73)
|
||||
assert_equal "is too long (maximum is 72 characters)", u.errors[:password][0]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue