0017-Fix-DEPRECATION-WARNING-Calling-to-an-ActiveModel-Er.patch

Marius BALTEANU, 2021-03-30 18:42

Download (835 Bytes)

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
27
-