Sha256: 3ff4067084b968f6239225f4d7fd05c5de6100a0be05aeb09e3c1a5fd66c609d
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
class Admin::SessionsController < ApplicationController layout 'admin' def create user = login(params[:email], params[:password], params[:remember_me]) if user redirect_back_or_to root_url, :notice => "Logged in!" else flash.now.alert = "Email or password was invalid" render :new end end def destroy logout redirect_to root_url, :notice => "Logged out!" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fullstack-admin-0.2.1 | app/controllers/admin/sessions_controller.rb |