Sha256: a6fbcdc5fceee2bce2e1c59bda09f1661216eff4440cc3270e085d63fb64ddb0
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
class SessionsController < ApplicationController layout 'setup' skip_before_filter :show_setup_wizard_if_uninstalled, :only => :create def new if logged_in? redirect_to features_path and return end end def create env['warden'].authenticate(:cartodb_oauth) redirect_back_or_default root_path end def destroy logout redirect_to root_path end def unauthenticated respond_to do |format| format.html do render :action => 'new' and return end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartoset-0.0.2 | app/controllers/sessions_controller.rb |
cartoset-0.0.1 | app/controllers/sessions_controller.rb |