Browse Source

Suppression de la gestion authentification dans controller principal

recurrent
echarp 9 years ago
parent
commit
cfc1b427ff
  1. 2
      app/controllers/application_controller.rb
  2. 3
      app/views/layouts/application.html.haml

2
app/controllers/application_controller.rb

@ -2,6 +2,4 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
#before_action :authenticate_admin_user!
end

3
app/views/layouts/application.html.haml

@ -34,9 +34,6 @@
%header.top
%h1= link_to 'Agenda du libre', root_url
//- if admin_user_signed_in?
//- else
// = link_to t('.login'), new_user_session_path, class: :login
= yield

Loading…
Cancel
Save