Allow empty email
This commit is contained in:
@@ -136,7 +136,7 @@ func (p *provider) GetUserByID(ctx context.Context, id string) (*models.User, er
|
||||
var user *models.User
|
||||
err := collection.Get("id", id).OneWithContext(ctx, &user)
|
||||
if err != nil {
|
||||
if user.Email == "" {
|
||||
if refs.StringValue(user.Email) == "" {
|
||||
return user, errors.New("no documets found")
|
||||
} else {
|
||||
return user, nil
|
||||
|
Reference in New Issue
Block a user