mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-01 23:41:23 -05:00
Database: Set lastname on create user
This commit is contained in:
parent
6b80eaa691
commit
6f44c73da2
|
|
@ -65,14 +65,14 @@ func LoginUserToGPCM(pool *pgxpool.Pool, ctx context.Context, userId uint64, gsb
|
|||
}
|
||||
}
|
||||
|
||||
if user.LastName == "" {
|
||||
user = UpdateProfile(pool, ctx, user.ProfileId, map[string]string{
|
||||
"lastname": "000000000" + gsbrcd,
|
||||
})
|
||||
}
|
||||
|
||||
logging.Notice("DATABASE", "Log in GPCM user:", aurora.Cyan(userId), aurora.Cyan(user.GsbrCode), "-", aurora.Cyan(user.ProfileId))
|
||||
}
|
||||
|
||||
if user.LastName == "" {
|
||||
user = UpdateProfile(pool, ctx, user.ProfileId, map[string]string{
|
||||
"lastname": "000000000" + gsbrcd,
|
||||
})
|
||||
}
|
||||
|
||||
return user, true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user