fixed 建木认证code加密生成,key=Client Secret

This commit is contained in:
“xxq250” 2022-07-29 15:37:24 +08:00
parent 531747024d
commit 8dba81bfca
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ module ProjectsHelper
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'
app = Doorkeeper::Application.find_by(uid: uid)
key = app&.secret || 'bf3c199c2470cb477d907b1e0917c17b'
key = 'bf3c199c2470cb477d907b1e0917c17b'
aes_encrypt(key, data.to_json)
end