Skip to content

Commit

Permalink
optmize
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Feb 17, 2024
1 parent 507ec03 commit f9ed6f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/setting/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func GetGeneralTokenSigningSecret() []byte {
if generalSigningSecret.CompareAndSwap(old, &jwtSecret) {
log.Warn("OAuth2 is not enabled, unable to use a persistent signing secret, a new one is generated, which is not persistent between restarts and cluster nodes")
}
return jwtSecret
}
return *generalSigningSecret.Load()
return *old
}

0 comments on commit f9ed6f3

Please sign in to comment.