소스 검색

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;