added new lines for readability and consistency

This commit is contained in:
Gani Georgiev
2022-07-14 20:01:53 +03:00
parent a16b0c9004
commit dbbfa243bc
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -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.")