FSN#38942 foute otp code invoeren bij bevestiging na scan button niet klikbaar
svn path=/Website/branches/v2016.3/; revision=32309
This commit is contained in:
@@ -48,20 +48,15 @@ Session("otp_secret_temp") = '1$30$6$0$' + newsecret;
|
|||||||
var data = { otp_code: otp_code,
|
var data = { otp_code: otp_code,
|
||||||
prs_key: <%=theUser_key%> };
|
prs_key: <%=theUser_key%> };
|
||||||
<% protectRequest.dataToken("data"); %>
|
<% protectRequest.dataToken("data"); %>
|
||||||
$.post("prs_perslid_otp_new_save.asp", data, otp_accept_callback, "json");
|
$.post("prs_perslid_otp_new_save.asp", data, FcltCallbackAndThenAlways(otp_accept_callback), "json");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function otp_accept_callback(data)
|
function otp_accept_callback(data)
|
||||||
{
|
{
|
||||||
|
iface.button.enable("btn_accept_submit");
|
||||||
if (data.success)
|
if (data.success)
|
||||||
{
|
FcltMgr.closeDetail(window, data);
|
||||||
FcltCallbackClose(data);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
FcltMgr.alert(data.warning, { fnafterclose: function() { iface.button.enable("btn_accept_submit"); }});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user