mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 22:39:50 +08:00
fixed 建木认证code加密生成
This commit is contained in:
@@ -115,7 +115,7 @@ module ProjectsHelper
|
||||
# GET:https://ci-v3.test.jianmuhub.com/oauth2/authorize?code=${encode(密文)}
|
||||
def jianmu_devops_code(project, user)
|
||||
data = { userId: user.id, ref: project.identifier, owner: project.owner.login, timestamp: Time.now.to_i * 1000 }
|
||||
aes_encrypt(data)
|
||||
aes_encrypt(data.to_json)
|
||||
end
|
||||
|
||||
def aes_encrypt(des_text)
|
||||
|
||||
Reference in New Issue
Block a user