mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 05:43:19 +08:00
fix: set lastSeenAt date when creating users to then years in past insteasd of empty date, fixes #9260
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user