mirror of https://github.com/gophish/gophish
Set user last_login time for right mysql working
parent
d2efb18ef1
commit
d2f8d7b6f5
|
@ -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 != "" {
|
||||||
|
|
Loading…
Reference in New Issue