mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
21 lines
374 B
Ruby
21 lines
374 B
Ruby
class SessionsController < ApplicationController
|
|
before_filter :authenticate!, :except => :new
|
|
before_filter :require_no_authentication, :only => :new
|
|
|
|
# GET /session/new
|
|
#
|
|
def new
|
|
end
|
|
|
|
# POST /session
|
|
#
|
|
def create
|
|
redirect_to root_path if authenticated?
|
|
end
|
|
|
|
# DELETE /session
|
|
#
|
|
def destroy
|
|
redirect_to :action => :new if logout
|
|
end
|
|
end
|