Sha256: 35a31454b5e2bbc948859ac62dcbed5881c28f77fff6736b0890036d9bb8ce95
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
class CmsAdmin::SessionsController < CmsAdmin::BaseController skip_before_filter :cms_login_required def new @cms_user = CmsUser.new end def create @cms_current_user = CmsUser.authenticate(params[:login], params[:password], @cms_site.authentication, @cms_site.ldap_hostname, @cms_site.ldap_base_DN, @cms_site.ldap_uid) if @cms_current_user session[:cms_user_id] = @cms_current_user.id redirect_to cms_admin_pages_path else flash[:error] = 'Incorrect Login or Password' render :action => :new end end def destroy session[:cms_user_id] = @cms_current_user = nil redirect_to :action => :new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lucy_cms-0.0.6 | app/controllers/cms_admin/sessions_controller.rb |