mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
change verify token response
This commit is contained in:
@@ -65,11 +65,7 @@ class ProjectsController < ApplicationController
|
|||||||
|
|
||||||
def verify_auth_token
|
def verify_auth_token
|
||||||
data = Projects::VerifyAuthTokenService.call(params[:clone_addr], params[:auth_token])
|
data = Projects::VerifyAuthTokenService.call(params[:clone_addr], params[:auth_token])
|
||||||
if data
|
render_ok({data: data})
|
||||||
render_ok
|
|
||||||
else
|
|
||||||
render_error('token验证不通过')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def migrate
|
def migrate
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Projects::VerifyAuthTokenService < ApplicationService
|
|||||||
@repo = nil
|
@repo = nil
|
||||||
@owner = nil
|
@owner = nil
|
||||||
@website = nil
|
@website = nil
|
||||||
@success = nil
|
@success = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
|
|||||||
Reference in New Issue
Block a user