Feature #29914 » 0017-Fix-DEPRECATION-WARNING-Calling-to-an-ActiveModel-Er.patch
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 |