diff --git a/app/controllers/api/v0/base_controller.rb b/app/controllers/api/v0/base_controller.rb index 020b268..158c043 100644 --- a/app/controllers/api/v0/base_controller.rb +++ b/app/controllers/api/v0/base_controller.rb @@ -103,7 +103,7 @@ def authenticate_token authenticate_with_http_token do |token, options| # reject the empty string as it is our base empty token - if !token = "" + if token != "" @token = token @user = User.find_by(api_token: token) # if no user found, return false, otherwise true