Browse Source

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

pull/313/head
“xxq250” 3 years ago
parent
commit
8dba81bfca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/helpers/projects_helper.rb

+ 1
- 1
app/helpers/projects_helper.rb 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



Loading…
Cancel
Save