Skip to content

Commit

Permalink
Return empty user object when no token is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Jul 1, 2021
1 parent 75eafba commit 511b5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ecds_rails_auth_engine/current_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def current_user
cookies.signed[:auth]
end

return nil if token.nil?
return User.new if token.nil?
# begin
# token = a.split(' ').last

Expand Down

0 comments on commit 511b5de

Please sign in to comment.