From 71560b1e1a746023748f9f0cb609b2b69bf75c0d Mon Sep 17 00:00:00 2001 From: Teal Bauer <git@teal.is> Date: Sun, 26 May 2024 23:50:04 +0200 Subject: [PATCH] hotfix --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 8ca777b..5918786 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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 -- GitLab