From d2f8d7b6f5083ebc79ce8f3b1ea2e9e2e527d63d Mon Sep 17 00:00:00 2001 From: Grigory Date: Mon, 21 Aug 2023 22:08:10 +0100 Subject: [PATCH] Set user last_login time for right mysql working --- models/models.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/models.go b/models/models.go index 29a68151..f2173812 100644 --- a/models/models.go +++ b/models/models.go @@ -212,6 +212,7 @@ func Setup(c *config.Config) error { Role: adminRole, RoleID: adminRole.ID, PasswordChangeRequired: true, + LastLogin: time.Now().UTC(), } if envToken := os.Getenv(InitialAdminApiToken); envToken != "" {