Merge pull request '调整返回的验证token信息' (#77) from KingChan/forgeplus:chenjing into standalone_develop

This commit is contained in:
KingChan 2023-06-20 15:51:12 +08:00
commit d38707f317
2 changed files with 2 additions and 6 deletions

View File

@ -65,11 +65,7 @@ class ProjectsController < ApplicationController
def verify_auth_token
data = Projects::VerifyAuthTokenService.call(params[:clone_addr], params[:auth_token])
if data
render_ok
else
render_error('token验证不通过')
end
render_ok({data: data})
end
def migrate

View File

@ -7,7 +7,7 @@ class Projects::VerifyAuthTokenService < ApplicationService
@repo = nil
@owner = nil
@website = nil
@success = nil
@success = false
end
def call