83 lines
2.4 KiB
Plaintext
83 lines
2.4 KiB
Plaintext
<%@language="javascript"%>
|
|
<%
|
|
/*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: logoff_confirm.asp
|
|
Description: De gebruiker meldt zich helemaal af in Facilitor
|
|
Context: afmelden ook echt afmelden is: de gebruiker zal weer opnieuw moeten aanmelden (QR-Code, SAML/Grip enzovoorts).
|
|
*/
|
|
%>
|
|
<%
|
|
var EXPIRED_PASSWORD_OK = true;
|
|
%>
|
|
<!-- #include file="../Shared/common.inc" -->
|
|
<!-- #include file="../Shared/iface.inc" -->
|
|
<%
|
|
FCLTHeader.Requires({ plugins: ["jQuery"] });
|
|
var user_info = new Perslid(user_key);
|
|
%>
|
|
<html>
|
|
<head>
|
|
<% FCLTHeader.Generate(); %>
|
|
<script>
|
|
|
|
$(function()
|
|
{
|
|
function logOffCancel()
|
|
{
|
|
FcltMgr.showTab(true);
|
|
FcltMgr.closeDetail(window, { close: true});
|
|
}
|
|
|
|
function logOffCallback(json, textStatus)
|
|
{
|
|
if (json && json.message)
|
|
{
|
|
logOffCancel();
|
|
}
|
|
else
|
|
{
|
|
parent.location.href = json.return_url;
|
|
}
|
|
}
|
|
|
|
var params = { title: "<%=safe.jsstring(user_info.naam())%>"
|
|
, oktekst: L("lcl_logoff")
|
|
, fncallback: function()
|
|
{
|
|
var data = {};
|
|
<% protectRequest.dataToken("data"); %>
|
|
$.post( "../aut/LogOff.asp"
|
|
, data
|
|
, FcltCallbackAndThen(logOffCallback)
|
|
, "json"
|
|
);
|
|
}
|
|
, buttons: [
|
|
{ text: L("lcl_cancel")
|
|
, icon: "fal fa-fw fa-undo"
|
|
, click: logOffCancel
|
|
}
|
|
]
|
|
};
|
|
|
|
FcltMgr.showTab(false);
|
|
FcltMgr.mydialog( L("lcl_logoff_confirm"), params);
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body class="fclt-modal" id="mod_prs_pwdchange">
|
|
<% MODAL_START(); %>
|
|
<form id="logoff_conf" name="logoff_conf">
|
|
<%
|
|
IFACE.FORM_END();
|
|
%>
|
|
</form>
|
|
<% MODAL_END(); %>
|
|
</body>
|
|
</html>
|
|
<% ASPPAGE_END(); %>
|