mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Users: Ensure default admin is created with a valid uid (#89981)
Users: Ensure default admin has a valid uid
This commit is contained in:
parent
9004b58851
commit
bfe77ab530
@ -64,6 +64,7 @@ func (ss *SQLStore) createUser(ctx context.Context, sess *DBSession, args user.C
|
||||
|
||||
// create user
|
||||
usr = user.User{
|
||||
UID: util.GenerateShortUID(),
|
||||
Email: args.Email,
|
||||
Login: args.Login,
|
||||
IsAdmin: args.IsAdmin,
|
||||
|
Loading…
Reference in New Issue
Block a user