Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 27, 2024
1 parent 8fce78c commit 5ea5f75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/controllers/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def openid_connect
@user = Person.from_omniauth(request.env['omniauth.auth'])
@user.save
@user = Person.from_omniauth(request.env['omniauth.auth']).save
sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
set_flash_message(:notice, :success, kind: 'Keycloak') if is_navigational_format?
end
Expand Down
4 changes: 3 additions & 1 deletion app/helpers/auth_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module AuthHelper
# frozen_string_literal: true

module Helper
def session_path(_scope)
new_person_session_path
end
Expand Down

0 comments on commit 5ea5f75

Please sign in to comment.