2018-03-20 23:49:35 +01:00
|
|
|
<TMPL_INCLUDE NAME="header.tpl">
|
|
|
|
|
|
|
|
<title>LemonLDAP::NG 2nd Factor sessions explorer</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body ng-app="llngSessionsExplorer" ng-controller="SessionsExplorerCtrl" ng-csp>
|
|
|
|
|
|
|
|
<TMPL_INCLUDE NAME="menubar.tpl">
|
|
|
|
<div id="content" class="row container-fluid">
|
|
|
|
<div id="pleaseWait" ng-show="waiting"><span trspan="waitingForDatas"></span></div>
|
|
|
|
<aside id="left" class="col-lg-4 col-md-4 col-sm-5 col-xs-12 scrollable " ng-class="{'hidden-xs':!showT}" role="complementary">
|
|
|
|
<div class="navbar navbar-default">
|
|
|
|
<div class="navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav" role="grid">
|
2020-02-16 19:29:49 +01:00
|
|
|
<form class="navbar-form" name="filterForm">
|
|
|
|
<div class="form-check ">
|
2018-06-30 18:19:31 +02:00
|
|
|
<input type="checkbox" ng-model="U2FCheck" class="form-check-input" ng-true-value="2" ng-false-value="1" ng-change="search2FA()"/>
|
2018-04-16 23:44:49 +02:00
|
|
|
<label class="form-check-label" for="U2FCheck">U2F</label>
|
2018-04-19 16:49:09 +02:00
|
|
|
&
|
2018-06-30 18:19:31 +02:00
|
|
|
<input type="checkbox" ng-model="TOTPCheck" class="form-check-input" ng-true-value="2" ng-false-value="1" ng-change="search2FA()"/>
|
2018-03-20 23:49:35 +01:00
|
|
|
<label class="form-check-label" for="TOTPCheck">TOTP</label>
|
2018-04-19 16:49:09 +02:00
|
|
|
&
|
2018-06-30 18:19:31 +02:00
|
|
|
<input type="checkbox" ng-model="UBKCheck" class="form-check-input" ng-true-value="2" ng-false-value="1" ng-change="search2FA()"/>
|
2018-04-15 22:56:24 +02:00
|
|
|
<label class="form-check-label" for="UBKCheck">UBK</label>
|
2018-03-20 23:49:35 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2018-03-21 22:11:23 +01:00
|
|
|
</ul>
|
2020-02-16 19:29:49 +01:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-8 col-xs-14" >
|
|
|
|
<form class="navbar-form" role="search">
|
2018-03-21 22:11:23 +01:00
|
|
|
<div class="input-group add-on">
|
2018-03-22 23:04:12 +01:00
|
|
|
<input class="form-control" placeholder="{{translate('search')}}" type="text" ng-model="searchString" ng-init="" ng-keyup="search2FA()"/>
|
2018-03-21 22:11:23 +01:00
|
|
|
<div class="input-group-btn">
|
2018-03-21 22:51:58 +01:00
|
|
|
<button class="btn btn-default" ng-click="search2FA(1)"><i class="glyphicon glyphicon-search"></i></button>
|
2018-03-21 22:11:23 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2018-03-20 23:49:35 +01:00
|
|
|
</div>
|
2019-04-03 14:15:16 +02:00
|
|
|
</div>
|
|
|
|
|
2018-03-21 22:11:23 +01:00
|
|
|
<!-- Tree -->
|
2019-04-03 14:15:16 +02:00
|
|
|
|
2020-01-24 22:10:11 +01:00
|
|
|
<div ng-show="data.length!=0" class="text-center"><p class="badge">{{total}} {{translate('session_s')}}</p></div>
|
2018-03-20 23:49:35 +01:00
|
|
|
<div class="region region-sidebar-first">
|
|
|
|
<section id="block-superfish-1" class="block block-superfish clearfix">
|
|
|
|
<div ui-tree data-drag-enabled="false" id="tree-root">
|
|
|
|
<div ng-show="data.length==0" class="center">
|
2020-01-24 22:10:11 +01:00
|
|
|
<span class="label label-warning">{{translate('noData')}}</span>
|
2018-03-20 23:49:35 +01:00
|
|
|
</div>
|
|
|
|
<ol ui-tree-nodes="" ng-model="data">
|
|
|
|
<li ng-repeat="node in data track by node.id" ui-tree-node ng-include="'nodes_renderer.html'" collapsed="true"></li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="hresizer hidden-xs" resizer="vertical" resizer-left="#left" resizer-right="#right"></div>
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
<!-- Right(main) div -->
|
2019-04-03 14:15:16 +02:00
|
|
|
<div id="right" class="col-lg-8 col-md-8 col-sm-7 col-xs-12 scrollable" ng-class="{'hidden-xs':showT&&!showM}">
|
2020-03-17 21:13:43 +01:00
|
|
|
<span class="visible-xs">
|
|
|
|
<div ng-if="currentSession" class="lmmenu navbar navbar-default" ng-class="{'hidden-xs':!showM}">
|
|
|
|
<div class="navbar-collapse" ng-class="{'collapse':!showM}" id="formmenu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li uib-dropdown class="visible-xs">
|
|
|
|
<a id="langmenu" name="menu" uib-dropdown-toggle data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Menu <span class="caret"></span></a>
|
|
|
|
<ul uib-dropdown-menu aria-labelled-by="langmenu" role="grid">
|
|
|
|
<li ng-repeat="link in links"><a href="{{link.target}}" role="row"><i ng-if="link.icon" class="glyphicon glyphicon-{{link.icon}}"></i> {{translate(link.title)}}</a></li>
|
|
|
|
<li ng-repeat="menulink in menulinks"><a href="{{menulink.target}}" role="row"><i ng-if="menulink.icon" class="glyphicon glyphicon-{{menulink.icon}}"></i> {{translate(menulink.title)}}</a></li>
|
|
|
|
<li ng-include="'languages.html'"></li>
|
|
|
|
<TMPL_IF NAME="INSTANCE_NAME">
|
|
|
|
<li><a href="https://lemonldap-ng.org"><TMPL_VAR NAME="INSTANCE_NAME"></a></li>
|
|
|
|
</TMPL_IF>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
2018-03-20 23:49:35 +01:00
|
|
|
<div class="panel panel-default" ng-hide="currentSession===null">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h1 class="panel-title text-center">{{translate("sessionTitle")}} {{currentSession.id}}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>{{translate("sessionStartedAt")}}</strong>
|
|
|
|
{{localeDate(currentSession._utime)}}
|
|
|
|
</div>
|
|
|
|
<div ng-model="currentSession.nodes">
|
|
|
|
<div ng-repeat="node in currentSession.nodes" ng-include="'session_attr.html'"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="session_attr.html">
|
|
|
|
<div class="panel panel-default" ng-if="node.nodes">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title text-center">{{translateP(node.title)}}</h2>
|
|
|
|
</div>
|
|
|
|
<table class="table table-striped" ng-model="node.nodes">
|
|
|
|
<tr ng-repeat="node in node.nodes" ng-include="'session_attr.html'"></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-04-18 21:51:35 +02:00
|
|
|
<div ng-if="!node.nodes" >
|
2018-07-19 00:01:43 +02:00
|
|
|
<th class="col-md-3" ng-if="node.title!='UBK' && node.title!='TOTP' && node.title!='U2F'">{{translate(node.title)}}</th>
|
|
|
|
<td class="data-{{node.epoch}}" ng-if="node.title=='TOTP' || node.title=='UBK' || node.title=='U2F'" >{{node.title}}</td>
|
|
|
|
<th class="col-md-3" ng-if="node.title=='type'">{{translate(node.value)}}</th>
|
|
|
|
<td class="col-md-3 data-{{node.epoch}}" ng-if="node.title!='type'" >{{node.value}}</td>
|
|
|
|
<th class="col-md-3" ng-if="node.title=='type'">{{translate(node.epoch)}}</th>
|
|
|
|
<td class="col-md-3 data-{{node.epoch}}" ng-if="node.title=='TOTP' || node.title=='UBK' || node.title=='U2F'">{{localeDate(node.epoch)}}</td>
|
2018-04-30 16:55:41 +02:00
|
|
|
<td class="data-{{node.epoch}}">
|
2018-07-19 00:01:43 +02:00
|
|
|
<span ng-if="node.title=='TOTP' || node.title=='UBK' || node.title=='U2F'" class="link text-danger glyphicon glyphicon-minus-sign" ng-click="delete2FA(node.title, node.epoch)"></span>
|
2018-04-19 11:35:42 +02:00
|
|
|
<!--
|
|
|
|
<span ng-if="$last && ( node.title=='TOTP' || node.title=='UBK' || node.title=='U2F' )" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newRule'})"></span>
|
|
|
|
-->
|
|
|
|
</td>
|
2018-03-20 23:49:35 +01:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/ng-template" id="nodes_renderer.html">
|
|
|
|
<div ui-tree-handle class="tree-node tree-node-content panel-info" ng-class="{'bg-info':this.$modelValue===currentScope.$modelValue,'tree-node-default':this.$modelValue!==currentScope.$modelValue}">
|
|
|
|
<span ng-if="node.value">
|
|
|
|
<a id="a-{{node.value}}" class="btn btn-node btn-sm" ng-click="stoggle(this)">
|
|
|
|
<span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed,'glyphicon-chevron-down': !collapsed}"></span>
|
|
|
|
</a>
|
|
|
|
<span id="s-{{node.value}}" ng-click="stoggle(this)">{{node.title || node.value}} <span class="badge">{{node.count}}</span></span>
|
|
|
|
</span>
|
|
|
|
<span ng-if="node.session">
|
|
|
|
<a class="btn btn-node btn-sm" ng-click="displaySession(this)">
|
|
|
|
<span class="glyphicon glyphicon-eye-open"></span>
|
|
|
|
</a>
|
2018-04-19 11:35:42 +02:00
|
|
|
<span id="s-{{node.session}}" ng-click="displaySession(this)">{{node.userId}}</span>
|
2018-03-20 23:49:35 +01:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<ol ui-tree-nodes="" ng-model="node.nodes" ng-class="{hidden: collapsed}">
|
|
|
|
<li ng-repeat="node in node.nodes track by node.id" ui-tree-node ng-include="'nodes_renderer.html'" collapsed="true"></li>
|
|
|
|
</ol>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<TMPL_INCLUDE NAME="scripts.tpl">
|
|
|
|
|
|
|
|
<!-- //if:jsminified
|
|
|
|
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">js/2ndfa.min.js"></script>
|
|
|
|
//else -->
|
|
|
|
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">js/2ndfa.js"></script>
|
|
|
|
<!-- //endif -->
|
|
|
|
|
|
|
|
<TMPL_INCLUDE NAME="footer.tpl">
|