Skip to content
Snippets Groups Projects
Commit 71560b1e authored by Teal's avatar Teal
Browse files

hotfix

parent 4bbe59a9
Branches
No related tags found
No related merge requests found
......@@ -9,11 +9,11 @@ class User < ApplicationRecord
after_initialize :set_avatar_color
def errors
super.tap { |errors| errors.delete(:password, :blank) if password_digest.nil? }
super.tap { |errors| errors.delete(:password, :blank) if password.nil? }
end
def has_password?
!password_digest.nil?
!password.nil?
end
def text_color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment