mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-19 12:34:05 +02:00
added new lines for readability and consistency
This commit is contained in:
1 parent
a16b0c9004
commit
dbbfa243bc
3 files changed
+4
No files matched your search
@@ -100,6 +100,7 @@ func (form *UserOauth2Login) Submit() (*models.User, *auth.AuthUser, error) {
|
||||
}
|
||||
return user, authData, nil
|
||||
}
|
||||
|
||||
if !config.AllowRegistrations {
|
||||
// registration of new users is not allowed via the Oauth2 provider
|
||||
return nil, authData, errors.New("Cannot find user with the authorized email.")
|
||||
|
||||
Reference in new issue
Block a user