This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
authentic2-auth-fc/src/authentic2_auth_fc/templates/authentic2_auth_fc/close-popup-redirect.html

17 lines
616 B
HTML

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var next = getParameterByName('next');
window.opener.location.href = {% if redirect_to %}"{{ redirect_to|escapejs }}" {% else %}next || '/'{% endif %};
window.close();
</script>
</head>
<html>