Project

General

Profile

Defect #34985 » errors.diff

Pavel Rosický, 2021-03-30 12:13

View differences:

lib/redmine/sudo_mode.rb
20 20

  
21 21
      def check_password
22 22
        unless password.present? && User.current.check_password?(password)
23
          errors[:password] << :invalid
23
          errors.add(:password, :invalid)
24 24
        end
25 25
      end
26 26
    end
    (1-1/1)