Skip to content

Commit

Permalink
update VerificationDate field (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaR committed Apr 21, 2022
1 parent f794418 commit 670c917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user/domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ func (domain *Domain) MarkVerified(ctx context.Context, id, email string) error
}

// mark as verified
t := time.Now().Unix()
user.Verified = true
user.Updated = time.Now().Unix()
user.Updated = t
user.VerificationDate = t

val, err := json.Marshal(user)
if err != nil {
Expand Down

0 comments on commit 670c917

Please sign in to comment.