Ver Fonte

Fix token extraction in PIN verification response handling

Erwin Jacimino há 6 meses atrás
pai
commit
39f9f4487a
1 ficheiros alterados com 2 adições e 2 exclusões
  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;