diff --git a/app/models/user.rb b/app/models/user.rb index 5c8ebe11..7752a915 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -59,8 +59,8 @@ class User < ApplicationRecord has_many :purchases, dependent: :destroy has_many :products, through: :purchases has_many :orders, dependent: :destroy - # validates :first_name, :last_name, :email, :password, presence: true - # validates_confirmation_of :password + validates :first_name, :last_name, :email, :password, presence: true + validates_confirmation_of :password before_validation :set_uid_provider def can_receive_payments?