Use (Transaction|LazyValue).get_json() instead of logjson.logjson_to_json() and ...
[ndcode_site.git] / api / verification_image.png.jst
index 7d0bfea..caa0ce5 100644 (file)
@@ -15,14 +15,9 @@ return async env => {
   // store captcha text in the session for validation when form submitted
   let expires = new XDate()
   expires.addHours(1)
-  session.set(
+  session.set_json(
     'captcha',
-    transaction.json_to_logjson(
-      {
-        text: captcha.text(),
-        expires: expires.getTime()
-      }
-    )
+    {text: captcha.text(), expires: expires.getTime()}
   )
 
   await transaction.commit()