summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/sudo_mode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb
index ca15705d6..9703f0c77 100644
--- a/lib/redmine/sudo_mode.rb
+++ b/lib/redmine/sudo_mode.rb
@@ -20,7 +20,7 @@ module Redmine
def check_password
unless password.present? && User.current.check_password?(password)
- errors[:password] << :invalid
+ errors.add(:password, :invalid)
end
end
end