diff --git a/lib/devise/behaviors/http_header_authenticatable_behavior.rb b/lib/devise/behaviors/http_header_authenticatable_behavior.rb index 616a501a..bca2388e 100644 --- a/lib/devise/behaviors/http_header_authenticatable_behavior.rb +++ b/lib/devise/behaviors/http_header_authenticatable_behavior.rb @@ -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