mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 19:18:15 +02:00
fixed comment typo
This commit is contained in:
1 parent
93b3788448
commit
9d30ca81cb
1 file changed
+1
-1
@@ -73,7 +73,7 @@ func (dao *Dao) FindExternalAuthByUserIdAndProvider(userId, provider string) (*m
|
|||||||
// SaveExternalAuth upserts the provided ExternalAuth model.
|
// SaveExternalAuth upserts the provided ExternalAuth model.
|
||||||
func (dao *Dao) SaveExternalAuth(model *models.ExternalAuth) error {
|
func (dao *Dao) SaveExternalAuth(model *models.ExternalAuth) error {
|
||||||
// extra check the model data in case the provider's API response
|
// extra check the model data in case the provider's API response
|
||||||
// changes and no longer returns the expected fields
|
// has changed and no longer returns the expected fields
|
||||||
if model.UserId == "" || model.Provider == "" || model.ProviderId == "" {
|
if model.UserId == "" || model.Provider == "" || model.ProviderId == "" {
|
||||||
return errors.New("Missing required ExternalAuth fields.")
|
return errors.New("Missing required ExternalAuth fields.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user