mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-12 15:21:09 +00:00
fix(oauth): avoid overwriting user state when binding
This commit is contained in:
@@ -312,6 +312,11 @@ func (p *GenericOAuthProvider) GetProviderPrefix() string {
|
||||
return p.config.Slug + "_"
|
||||
}
|
||||
|
||||
// ProviderUserIDColumn returns the users-table column storing this provider's user ID.
|
||||
func (p *GenericOAuthProvider) ProviderUserIDColumn() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetProviderId returns the provider ID for binding purposes
|
||||
func (p *GenericOAuthProvider) GetProviderId() int {
|
||||
return p.config.Id
|
||||
|
||||
Reference in New Issue
Block a user