Skip to content

Commit

Permalink
Fix for prod env having blank remote user headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
grosscol committed Feb 29, 2016
1 parent 3bfed7a commit aa5fbfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def valid_user?(headers)
# Remote user is coming back from cosign as uniquename.
# Append @umich.edu to this value to satisfy user model validations
def remote_user(headers)
return "#{headers['HTTP_X_REMOTE_USER']}@umich.edu" if headers['HTTP_X_REMOTE_USER']
return "#{headers['HTTP_X_REMOTE_USER']}@umich.edu" if headers['HTTP_X_REMOTE_USER'].present?
return nil
end

Expand Down

0 comments on commit aa5fbfb

Please sign in to comment.