Sha256: 863baf10485a1437821ab1217a38ac4dfecc7c38fb4c555b2ff7f7689b82fa3f
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
module Ixtlan module Controllers module AuthenticationsController def self.included(base) base.skip_before_filter :guard base.skip_before_filter :authenticate, :only => :destroy # do not want to expose permissions settings on filesystem cache base.cache_headers :private end protected def login_from_params auth = params[:authentication] User.authenticate(auth[:login], auth[:password]) if auth end public def show render_successful_login end def create render_successful_login end def destroy authentication_logger.log_user(current_user.nil? ? nil : current_user.login, "logged out") session.clear head :ok end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ixtlan-0.4.0.pre5 | lib/ixtlan/controllers/authentications_controller.rb |