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