Class: EgovUtils::SessionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/egov_utils/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



14
15
16
# File 'app/controllers/egov_utils/sessions_controller.rb', line 14

def create
  password_authentication
end

#destroyObject



18
19
20
21
# File 'app/controllers/egov_utils/sessions_controller.rb', line 18

def destroy
  reset_session
  redirect_to , notice: t(:notice_logout)
end

#newObject



8
9
10
11
12
# File 'app/controllers/egov_utils/sessions_controller.rb', line 8

def new
  if current_user.logged?
    redirect_to main_app.root_path
  end
end