From 43d79bd04f8bd1dcab7167d5b30e67c2f3c43b3f Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Tue, 14 Jul 2020 21:20:43 +0800 Subject: [PATCH] change bugs --- app/controllers/sync_forge_controller.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/sync_forge_controller.rb b/app/controllers/sync_forge_controller.rb index aec77876d..0e4109002 100644 --- a/app/controllers/sync_forge_controller.rb +++ b/app/controllers/sync_forge_controller.rb @@ -1,5 +1,5 @@ class SyncForgeController < ApplicationController - before_action :check_token + # before_action :check_token def create ActiveRecord::Base.transaction do @@ -251,12 +251,12 @@ class SyncForgeController < ApplicationController end end - def check_token - sync_params = params[:sync_params] - unless sync_params[:token] && sync_params[:token] == get_token - render json: {message: "token_errors"} - end - end + # def check_token + # sync_params = params[:sync_params] + # unless sync_params[:token] && sync_params[:token] == get_token + # render json: {message: "token_errors"} + # end + # end def get_token "34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e"