change bugs
This commit is contained in:
parent
b48812bc79
commit
43d79bd04f
|
@ -1,5 +1,5 @@
|
||||||
class SyncForgeController < ApplicationController
|
class SyncForgeController < ApplicationController
|
||||||
before_action :check_token
|
# before_action :check_token
|
||||||
|
|
||||||
def create
|
def create
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
|
@ -251,12 +251,12 @@ class SyncForgeController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_token
|
# def check_token
|
||||||
sync_params = params[:sync_params]
|
# sync_params = params[:sync_params]
|
||||||
unless sync_params[:token] && sync_params[:token] == get_token
|
# unless sync_params[:token] && sync_params[:token] == get_token
|
||||||
render json: {message: "token_errors"}
|
# render json: {message: "token_errors"}
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
|
|
||||||
def get_token
|
def get_token
|
||||||
"34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e"
|
"34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e"
|
||||||
|
|
Loading…
Reference in New Issue