Sha256: 255c726d53c2a7194f4d794bc2f51558876269bb1891d01828e89a1b0982c776
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
module Dust class SessionsController < AuthenticationController layout "sessions" def new @session = Dust::Session.new end def create @user = login(params[:dust_session][:username], params[:dust_session][:password], params[:dust_session][:remember_me]) #raise "hey there" if @user redirect_back_or_to dust_dashboard_path, :notice => "Logged In!" else @session = Dust::Session.new(params[:dust_session], @user) @session.valid? render :action => 'new' #flash.alert = "Email or Password Invalid!" end end def destroy logout redirect_to root_url, :notice => "Logged Out!" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dust-cms-0.0.07 | app/controllers/dust/sessions_controller.rb |
dust-cms-0.0.06 | app/controllers/dust/sessions_controller.rb |
dust-cms-0.0.05 | app/controllers/dust/sessions_controller.rb |