mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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,
|
EmailVerified: cmd.EmailVerified,
|
||||||
Created: time.Now(),
|
Created: time.Now(),
|
||||||
Updated: time.Now(),
|
Updated: time.Now(),
|
||||||
|
LastSeenAt: time.Now().AddDate(-10, 0, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(cmd.Password) > 0 {
|
if len(cmd.Password) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user