Set user last_login time for right mysql working

pull/2953/head
Grigory 2023-08-21 22:08:10 +01:00
parent d2efb18ef1
commit d2f8d7b6f5
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ func Setup(c *config.Config) error {
Role: adminRole, Role: adminRole,
RoleID: adminRole.ID, RoleID: adminRole.ID,
PasswordChangeRequired: true, PasswordChangeRequired: true,
LastLogin: time.Now().UTC(),
} }
if envToken := os.Getenv(InitialAdminApiToken); envToken != "" { if envToken := os.Getenv(InitialAdminApiToken); envToken != "" {