Updated User controller to use request parameters in getToken method instead of body parameters