fix: set lastSeenAt date when creating users to then years in past insteasd of empty date, fixes #9260

This commit is contained in:
Torkel Ödegaard 2017-10-11 11:29:17 +02:00
parent 71a839deaf
commit 2bc57d856c

View File

@ -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 {