Increase the maximum password length

This commit is contained in:
Nascher 2015-08-29 15:31:54 +00:00
parent 9a18705f70
commit 4632208699

View file

@ -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