Set sentry context after logging in

This commit is contained in:
Sebastian Serth
2023-02-18 19:27:46 +01:00
parent 9c3ec3c7ff
commit 6465404ebe

View File

@ -10,6 +10,7 @@ class SessionsController < ApplicationController
skip_after_action :verify_authorized skip_after_action :verify_authorized
skip_before_action :verify_authenticity_token, only: :create_through_lti skip_before_action :verify_authenticity_token, only: :create_through_lti
after_action :set_sentry_context
def new def new
redirect_to(:root, alert: t('shared.already_signed_in')) if current_user redirect_to(:root, alert: t('shared.already_signed_in')) if current_user