upgrade
This commit is contained in:
51
plugin/azure_active_directory/layout/login_form.tpl
Normal file
51
plugin/azure_active_directory/layout/login_form.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{% if _u.logged == 0 %}
|
||||
{% if login_form %}
|
||||
<div id="login-block" class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ login_language_form }}
|
||||
{% if plugin_login_top is not null %}
|
||||
<div id="plugin_login_top">
|
||||
{{ plugin_login_top }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{{ login_failed }}
|
||||
|
||||
{% set azure_plugin_enabled = 'azure_active_directory'|api_get_plugin_setting('enable') %}
|
||||
{% set azure_plugin_manage_login = 'azure_active_directory'|api_get_plugin_setting('manage_login_enable') %}
|
||||
|
||||
{% if 'false' == azure_plugin_enabled or 'false' == azure_plugin_manage_login %}
|
||||
{{ login_form }}
|
||||
|
||||
{% if "allow_lostpassword" | api_get_setting == 'true' or "allow_registration"|api_get_setting == 'true' %}
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
{% if "allow_registration"|api_get_setting != 'false' %}
|
||||
<li><a href="{{ _p.web_main }}auth/inscription.php"> {{ 'SignUp'|get_lang }} </a></li>
|
||||
{% endif %}
|
||||
|
||||
{% if "allow_lostpassword" | api_get_setting == 'true' %}
|
||||
{% set pass_reminder_link = 'pass_reminder_custom_link'|api_get_configuration_value %}
|
||||
{% set lost_password_link = _p.web_main ~ 'auth/lostPassword.php' %}
|
||||
|
||||
{% if not pass_reminder_link is empty %}
|
||||
{% set lost_password_link = pass_reminder_link %}
|
||||
{% endif %}
|
||||
|
||||
<li>
|
||||
<a href="{{ lost_password_link }}"> {{ 'LostPassword' | get_lang }} </a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if plugin_login_bottom is not null %}
|
||||
<div id="plugin_login_bottom">
|
||||
{{ plugin_login_bottom }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user