otwarchive-symphonyarchive/app/controllers/admin/sessions_controller.rb

15 lines
441 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
# Namespaced Admin class
class Admin
# Handle admin session authentication
class SessionsController < Devise::SessionsController
before_action :user_logout_required, except: :destroy
skip_before_action :store_location, raise: false
# GET /admin/logout
def confirm_logout
# If the user is already logged out, we just redirect to the front page.
redirect_to root_path unless admin_signed_in?
end
end
end