bcrypt has a 72 character limit :'(

56 bytes limit of eksblowfish, to be exact
This commit is contained in:
jomo
2015-12-17 00:58:27 +01:00
parent bf91ef766c
commit 756d0d1047
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class User < ActiveRecord::Base
validates_presence_of :password, :password_confirmation, :email_token, on: :create
validates_presence_of :name, :email, :ign
validates_length_of :password, in: 8..256, on: [:create, :update], allow_nil: true
validates_length_of :password, in: 8..72, on: [:create, :update], allow_nil: true
validates_length_of :name, in: 2..30
validates_length_of :about, maximum: 5000
validates_length_of :ign, minimum: 1, maximum: 16