fixed 建木认证code加密生成,key=Client Secret
This commit is contained in:
parent
531747024d
commit
8dba81bfca
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue