Add api_ or api_account_ prefix on all API calls in client side javascript
[ndcode_site.git] / my_account / verify_password / index.html.jst
index 7fecc81..e20fa28 100644 (file)
@@ -105,10 +105,10 @@ return async env => {
     },
     // scripts
     async _out => {
-      script(src="/js/api_call.js") {}
+      //script(src="/js/api_call.js") {}
 
       script {
-        let verify_password = async (...arguments) => api_call(
+        let api_account_verify_password = async (...arguments) => api_call(
           '/api/account/verify_password.json',
           ...arguments
         )
@@ -138,7 +138,7 @@ return async env => {
           let email
           try {
             email = document.getElementById('email').value.slice(0, 256).toLowerCase()
-            await verify_password(
+            await api_account_verify_password(
               // email
               email,
               // link_code