FIX: ManagedAuthenticator should automatically update last_used time

This commit is contained in:
David Taylor
2019-02-27 15:29:26 +00:00
parent cafbb3aea7
commit b907924c93
2 changed files with 4 additions and 1 deletions

View File

@ -45,6 +45,8 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
association.credentials = auth_token[:credentials] || {}
association.extra = auth_token[:extra] || {}
association.last_used = Time.zone.now
# Save to the DB. Do this even if we don't have a user - it might be linked up later in after_create_account
association.save!