sul-dlss/argo

View on GitHub
app/controllers/login_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
40%
# frozen_string_literal: true

###
#  Simple controller to handle login and redirect
###
class LoginController < ApplicationController
  def login
    if params[:referrer].present?
      redirect_to params[:referrer]
    else
      redirect_back fallback_location: root_url
    end
  end
end