<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           prs_perslid_otp_clear.asp
    Description:    Wissen OTP-code
    Parameters:
    Context:        Vanuit prs_perslid_otp.asp
    Note:
*/
var JSON_Result = true;
%>

<!--#include file="../Shared/common.inc"-->
<!--#include file="../Shared/login.inc"-->
<!-- #include file="../Shared/json2.js" -->
<%
protectRequest.validateToken();

var sql = "UPDATE prs_perslid"
        + "   SET prs_perslid_otpsecret = NULL"
        + "     , prs_perslid_otpcounter = NULL"
        + " WHERE prs_perslid_key = " + user_key;
Oracle.Execute(sql);

var result = { success: user_key > 0, message: L("lcl_otp_cleared") };

Response.Write(JSON.stringify(result));
Response.End;
%>
