gitlab-org--gitlab-foss/app/controllers/sessions_controller.rb

14 lines
219 B
Ruby

class SessionsController < Devise::SessionsController
def new
if request.referer.present?
store_location_for(:redirect, URI(request.referer).path)
end
super
end
def create
super
end
end