Fix #1406. Registration form consistency with User model
This commit is contained in:
parent
b3be600855
commit
a6cdd93a66
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
scope :admin, -> { where(is_admin: true) }
|
||||
|
||||
validates :email, presence: true
|
||||
validates :email, :password, :password_confirmation, presence: true
|
||||
|
||||
validates :username,
|
||||
uniqueness: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue