NIHVIVO-2694 Create a new page that allows an admin or root to restrict logins.
This commit is contained in:
parent
16c36079db
commit
486dc1dd7d
7 changed files with 308 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for restricting (or opening) access to logins. -->
|
||||
|
||||
<h2>Restrict Logins</h2>
|
||||
<#if messageAlreadyRestricted??>
|
||||
<#assign errorMessage = "Logins are already restricted." />
|
||||
</#if>
|
||||
|
||||
<#if messageAlreadyOpen??>
|
||||
<#assign errorMessage = "Logins are already not restricted." />
|
||||
</#if>
|
||||
|
||||
<#if errorMessage?has_content>
|
||||
<section id="error-alert" role="alert">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
|
||||
<p>${errorMessage}</p>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
<#if messageRestricting??>
|
||||
<#assign successMessage = "Logins are now restricted." />
|
||||
</#if>
|
||||
|
||||
<#if messageOpening??>
|
||||
<#assign successMessage = "Logins are no longer restricted." />
|
||||
</#if>
|
||||
|
||||
<#if successMessage?has_content>
|
||||
<section class="success">
|
||||
<p>${successMessage}</p>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
|
||||
<section id="restrict-login" role="region">
|
||||
<#if restricted == true>
|
||||
<h4>Logins are restricted</h4>
|
||||
<p><a href="${openUrl}" title="Remove Restrictions">Remove Restrictions</a></p>
|
||||
<#else>
|
||||
<h4>Logins are open to all</h4>
|
||||
<p><a href="${restrictUrl}" title="Restrict Logins">Restrict Logins</a></p>
|
||||
</#if>
|
||||
</section>
|
|
@ -75,4 +75,11 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/showAuth.css" /
|
|||
</tr>
|
||||
</#list>
|
||||
</table>
|
||||
|
||||
<h4>Authenticator:</h4>
|
||||
<table summary="Authenticator" width="100%">
|
||||
<tr>
|
||||
<td>${authenticator}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
<li role="listitem"><a href="${siteConfig.menuManagement}" title="Menu management">Menu management</a></li>
|
||||
</#if>
|
||||
|
||||
<#if siteConfig.restrictLogins?has_content>
|
||||
<li role="listitem"><a href="${siteConfig.restrictLogins}" title="Restrict Logins">Restrict Logins</a></li>
|
||||
</#if>
|
||||
|
||||
<#if siteConfig.siteInfo?has_content>
|
||||
<li role="listitem"><a href="${siteConfig.siteInfo}" title="Site information">Site information</a></li>
|
||||
</#if>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue