mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 15:58:50 +01:00
Increase the maximum password length
This commit is contained in:
parent
9a18705f70
commit
4632208699
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
validates_presence_of :login
|
||||
validates_presence_of :password, if: :password_required?
|
||||
validates_length_of :password, within: 5..40, if: :password_required?
|
||||
validates_length_of :password, within: 5..128, if: :password_required?
|
||||
validates_presence_of :password_confirmation, if: :password_required?
|
||||
validates_confirmation_of :password
|
||||
validates_length_of :login, within: 3..80
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue