Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Post Devise cruft removal

  • Loading branch information...
commit fb8531bd670ff44042030dc6f48322ce88182258 1 parent a08fe35
Mark Steckel authored
Showing with 0 additions and 24 deletions.
  1. +0 −17 app/controllers/sessions_controller.rb
  2. +0 −7 config/routes.rb
View
17 app/controllers/sessions_controller.rb
@@ -1,17 +0,0 @@
-class SessionsController < ApplicationController
- def create
- user = User.find_by_email(params[:new_session][:email])
- if user && user.authenticate(params[:new_session][:password])
- session[:user_id] = user.id
- redirect_to session['redirect_url'] || admin_dashboard_path
- else
- flash[:error] = "Invalid username or password"
- redirect_to login_path
- end
- end
-
- def destroy
- reset_session
- redirect_to root_path, notice: "Logged out!"
- end
-end
View
7 config/routes.rb
@@ -13,11 +13,8 @@
get "privacy/index"
- get "sessions/new"
-
resources :users
resources :bounces
-# resources :sessions
resources :whiplash_sessions
resources :unsubscribes
resources :pixel_tracking
@@ -35,10 +32,6 @@
post 'donation_tracking', to: 'donation_tracking#create', as: 'donation_tracking'
post 'paypal', to: 'donation_tracking#paypal', as: 'paypal'
- # get 'login', to: 'users#new', as: 'login'
- # get 'subscribe', to: 'members#new', as: 'subscribe'
- # get 'unsubscribe', to: 'unsubscribes#new', as: 'subscribe'
- # get 'logout', to: 'sessions#destroy', as: 'logout'
get 'contact', to: 'user_feedbacks#new', as: 'contact'
namespace(:admin) do
Please sign in to comment.
Something went wrong with that request. Please try again.