Skip to content

Commit 3b7b418

Browse files
committed
SessionsController: Set Sentry context only for logins
1 parent ea7a9ed commit 3b7b418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SessionsController < ApplicationController
1111

1212
skip_after_action :verify_authorized
1313
skip_before_action :verify_authenticity_token, only: :create_through_lti
14-
after_action :set_sentry_context
14+
after_action :set_sentry_context, only: %i[create_through_lti create]
1515

1616
def new
1717
redirect_to(:root, alert: t('shared.already_signed_in')) if current_user

0 commit comments

Comments
 (0)