浏览代码

Fix token extraction in PIN verification response handling

Erwin Jacimino 6 月之前
父节点
当前提交
39f9f4487a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/pin_forgot.html

+ 2 - 2
public/pin_forgot.html

@@ -404,8 +404,8 @@
           case 200:
             showSuccess('Código verificado correctamente');
             setTimeout(async () => {
-              data = await codeVerify.json();
-              changeToken = data.token;
+              responseJSON = await codeVerify.json();
+              changeToken = responseJSON.data.token;
               showStep(3);
             }, 1000);
             break;