13647: Update keepstore install docs, eliminate keep_services step.
[arvados.git] / services / api / app / controllers / user_sessions_controller.rb
index 1e4befb05a973b5de66eee6f5a96bcc4ffb83258..ef0f8868666dfb3bb786dab263270c8911df45e6 100644 (file)
@@ -85,10 +85,6 @@ class UserSessionsController < ApplicationController
       # Send them to their home cluster's login
       rh = Rails.configuration.RemoteClusters[user.uuid[0..4]]
       remote, return_to_url = params[:return_to].split(',', 2)
-      if remote !~ /^[0-9a-z]{5}$/ && remote != ""
-        return send_error 'Invalid remote cluster id', status: 400
-      end
-      remote = nil if remote == ''
       @remotehomeurl = "#{rh.Scheme || "https"}://#{rh.Host}/login?remote=#{Rails.configuration.ClusterID}&return_to=#{return_to_url}"
       render
       return