fixed 建木认证code加密生成
This commit is contained in:
parent
34504ddc39
commit
a560a5034c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue