Authlogic cruft removed
This commit is contained in:
parent
36f9ea3b6f
commit
6002cd56e0
6 changed files with 0 additions and 48 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
# Place all the behaviors and hooks related to the matching controller here.
|
|
||||||
# All this logic will automatically be available in application.js.
|
|
||||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
class UserSessionsController < ApplicationController
|
|
||||||
|
|
||||||
def new
|
|
||||||
@user_session = UserSession.new
|
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
|
||||||
@user_session = UserSession.new(params[:user_session])
|
|
||||||
if @user_session.save
|
|
||||||
flash[:notice] = "Login successful!"
|
|
||||||
redirect_back_or_default account_url(@current_user)
|
|
||||||
else
|
|
||||||
render :action => :new
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def destroy
|
|
||||||
current_user_session.destroy
|
|
||||||
flash[:notice] = "Logout successful!"
|
|
||||||
redirect_back_or_default new_user_session_url
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
module UserSessionsHelper
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
# User sessions. Refers to the "User" class automatically (by its name).
|
|
||||||
# See also: https://github.com/binarylogic/authlogic
|
|
||||||
class UserSession < Authlogic::Session::Base
|
|
||||||
# specify configuration here, such as:
|
|
||||||
# logout_on_timeout true
|
|
||||||
# ...many more options in the documentation
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require "test_helper"
|
|
||||||
|
|
||||||
class UserSessionsControllerTest < ActionController::TestCase
|
|
||||||
def test_sanity
|
|
||||||
flunk "Need real tests"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require "test_helper"
|
|
||||||
|
|
||||||
class UserSessionsHelperTest < ActionView::TestCase
|
|
||||||
def test_sanity
|
|
||||||
flunk "Need real tests"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue