mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Use the correct error message to unmatched password with password_confirmation
This commit is contained in:
parent
c0d90640a3
commit
27f550e9ea
@ -58,7 +58,7 @@ class User
|
||||
|
||||
def valid_password_confirmation
|
||||
unless password == password_confirmation
|
||||
errors.add(:current_password, :wrong_password)
|
||||
errors.add(:password, :confirmation, attribute: User.human_attribute_name(:password_confirmation))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user