Commit 80661f8b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Douglas Barbosa Alexandre

Fix import data not being saved

When credentials are changed, the field isn't marked as dirty
which results in the model not being saved or updated.
parent 54bfd15f
......@@ -37,6 +37,8 @@ module MirrorAuthentication
end
define_method("#{name}=") do |value|
credentials_will_change!
self.credentials ||= {}
# Removal of the password, username, etc, generally causes an update of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment