You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-06 22:32:51 +02:00
Enhancements to users when status is invited.
This commit is contained in:
@ -3,10 +3,11 @@ package user_account
|
||||
import (
|
||||
"context"
|
||||
"database/sql/driver"
|
||||
"geeks-accelerator/oss/saas-starter-kit/internal/platform/web"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"geeks-accelerator/oss/saas-starter-kit/internal/platform/auth"
|
||||
"geeks-accelerator/oss/saas-starter-kit/internal/platform/web"
|
||||
"github.com/lib/pq"
|
||||
"github.com/pkg/errors"
|
||||
"gopkg.in/go-playground/validator.v9"
|
||||
@ -341,7 +342,7 @@ func (m *User) Response(ctx context.Context) *UserResponse {
|
||||
r.Timezone = *m.Timezone
|
||||
}
|
||||
|
||||
if r.Name == "" {
|
||||
if strings.TrimSpace(r.Name) == "" {
|
||||
r.Name = r.Email
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user