mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
fixed 建木认证code加密生成,key=Client Secret
This commit is contained in:
@@ -117,7 +117,7 @@ module ProjectsHelper
|
|||||||
data = { userId: user.id, ref: project.identifier, owner: project.owner.login, timestamp: Time.now.to_i * 1000 }
|
data = { userId: user.id, ref: project.identifier, owner: project.owner.login, timestamp: Time.now.to_i * 1000 }
|
||||||
uid = EduSetting.get("jianmu_oauth2_uid") || 'oedKx4v-WyAfu2oy_AsFpFQCH_-g91ms0PQKN7YcEuw'
|
uid = EduSetting.get("jianmu_oauth2_uid") || 'oedKx4v-WyAfu2oy_AsFpFQCH_-g91ms0PQKN7YcEuw'
|
||||||
app = Doorkeeper::Application.find_by(uid: uid)
|
app = Doorkeeper::Application.find_by(uid: uid)
|
||||||
key = app&.secret || 'bf3c199c2470cb477d907b1e0917c17b'
|
key = 'bf3c199c2470cb477d907b1e0917c17b'
|
||||||
aes_encrypt(key, data.to_json)
|
aes_encrypt(key, data.to_json)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user