Project

General

Profile

Feature #29914 » 0017-Fix-DEPRECATION-WARNING-Calling-to-an-ActiveModel-Er.patch

Marius BĂLTEANU, 2021-03-30 18:42

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
(14-14/21)