sync last login date

pull/15671/head
Alberto Romeu 4 years ago
parent 249154bf58
commit 9c5e8c74da

@ -111,7 +111,7 @@ module Concerns
mapzen_routing_quota mapzen_routing_block_price soft_mapzen_routing_limit no_map_logo
user_render_timeout database_render_timeout state industry company phone job_role
password_reset_token password_reset_sent_at maintenance_mode company_employees use_case private_map_quota
session_salt public_dataset_quota)
session_salt public_dataset_quota dashboard_viewed_at)
end
end
@ -140,6 +140,7 @@ module Concerns
geocoder_provider isolines_provider routing_provider builder_enabled engine_enabled mapzen_routing_quota
mapzen_routing_block_price soft_mapzen_routing_limit industry company phone job_role password_reset_token
password_reset_sent_at company_employees use_case private_map_quota session_salt public_dataset_quota
dashboard_viewed_at
)
attrs = values.slice(*allowed_attributes)
attrs[:multifactor_authentication_status] = multifactor_authentication_status

@ -42,6 +42,11 @@ module CartoStrategy
# after login (see #11946), so marking that event on authentication is more accurate with the
# meaning (although not with the name).
user.view_dashboard
begin
user.update_in_central
rescue StandardError => e
CartoDB::Logger.warning(message: "Error updating lastlogin_date in central", exception: e)
end
end
end

Loading…
Cancel
Save