upgrade
This commit is contained in:
22
plugin/azure_active_directory/view/block.tpl
Normal file
22
plugin/azure_active_directory/view/block.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
{% if not _u.logged %}
|
||||
<div id="azure-active-directory-login">
|
||||
{% if not azure_active_directory.block_title is empty %}
|
||||
<h4>{{ azure_active_directory.block_title }}</h4>
|
||||
{% endif %}
|
||||
|
||||
{% if not azure_active_directory.signin_url is empty %}
|
||||
<a href="{{ azure_active_directory.signin_url }}" class="btn btn-default">{{ 'SignIn'|get_lang }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not azure_active_directory.signout_url is empty %}
|
||||
<a href="{{ azure_active_directory.signout_url }}" class="btn btn-danger">{{ 'Logout'|get_lang }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if azure_active_directory.management_login_enabled %}
|
||||
<hr>
|
||||
<a href="{{ _p.web_plugin ~ 'azure_active_directory/login.php' }}">
|
||||
{{ azure_active_directory.management_login_name }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
26
plugin/azure_active_directory/view/login.tpl
Normal file
26
plugin/azure_active_directory/view/login.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-sm-offset-4">
|
||||
{{ login_language_form }}
|
||||
|
||||
{{ 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 %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user