Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / api / verification_image.png.jst
index 0866545..3a41041 100644 (file)
@@ -10,7 +10,7 @@ return async env => {
 
   let transaction = await env.site.database.Transaction()
   try {
-    let root = await transaction.get({})
+    let root = await transaction.get()
     let session = await get_session(env, root)
 
     // store captcha text in the session for validation when form submitted