Finish changing XDate.now() to env.now, new XDate() to new XDate(env.now)
[ndcode_site.git] / api / account / password_reset.json.jst
index ec15432..7a6dba9 100644 (file)
@@ -38,7 +38,7 @@ return async env => {
           )
 
         link_code = crypto.randomBytes(16).toString('hex')
-        let expires = new XDate()
+        let expires = new XDate(env.now)
         expires.addDays(1)
         account.set_json(
           'verify_password',