Sha256: aa2c1f4e3b13786c563887cec1c666909e6c6bad1a40c053ebbf461844c54f9c
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
module Ixtlan module Controllers module AuthenticationsController def self.included(base) base.skip_before_filter :guard base.skip_before_filter :authenticate, :only => :destroy end protected def login_from_params auth = params[:authentication] User.authenticate(auth[:login], auth[:password]) end public def create render_successful_login end def destroy authentication_logger.log_user(current_user.nil? ? nil : current_user.login, "already logged out") session.clear head :ok end end end end
Version data entries
3 entries across 3 versions & 1 rubygems