Sha256: e0bfe3b1b096fefc6732a9648b2c71da50baeb460ec910c87d0a59f509a821e5
Contents?: true
Size: 581 Bytes
Versions: 9
Compression:
Stored size: 581 Bytes
Contents
class Admin::Kitsune::SessionsController < Admin::Kitsune::KitsuneController skip_before_filter :authenticate, :load_models layout 'admin/kitsune' def new end def create @user = KitsuneUser.authenticate(params[:session][:email], params[:session][:password]) if @user.nil? flash[:notice] = "Could not log you in" render 'new' else sign_in(@user) redirect_back_or(url_for(:controller => 'admin/kitsune/models')) end end def destroy sign_out redirect_to(url_for(:controller => 'admin/kitsune/models')) end end
Version data entries
9 entries across 9 versions & 2 rubygems