Sha256: b446b66f5ee23a08c69e177c80b18083613861be92fcf0cf5a65e8ca009f1dcf

Contents?: true

Size: 305 Bytes

Versions: 43

Compression:

Stored size: 305 Bytes

Contents

require 'devise'

class Users::SessionsController < Devise::SessionsController

  def new
    store_location_for(:user, request.referrer)
    if Ddr::Auth.require_shib_user_authn
      flash.discard(:alert)
      redirect_to user_shibboleth_omniauth_authorize_path
    else
      super
    end
  end

end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ddr-core-0.3.0 app/controllers/users/sessions_controller.rb
ddr-core-0.2.2 app/controllers/users/sessions_controller.rb
ddr-core-0.2.1 app/controllers/users/sessions_controller.rb