mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
fix: set lastSeenAt date when creating users to then years in past insteasd of empty date, fixes #9260
This commit is contained in:
parent
71a839deaf
commit
2bc57d856c
@ -96,6 +96,7 @@ func CreateUser(cmd *m.CreateUserCommand) error {
|
||||
EmailVerified: cmd.EmailVerified,
|
||||
Created: time.Now(),
|
||||
Updated: time.Now(),
|
||||
LastSeenAt: time.Now().AddDate(-10, 0, 0),
|
||||
}
|
||||
|
||||
if len(cmd.Password) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user