|
@@ -28,9 +28,7 @@
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
- <div id="login-form">
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- <div class="login-header mx-auto">
|
|
|
|
|
|
|
+ <div class="login-header mx-auto">
|
|
|
<div class="logo mb-3">{% include 'widget/logo.html' %}</div>
|
|
<div class="logo mb-3">{% include 'widget/logo.html' %}</div>
|
|
|
<h1>{{ appService.getAppTitle() }}</h1>
|
|
<h1>{{ appService.getAppTitle() }}</h1>
|
|
|
|
|
|
|
@@ -106,53 +104,25 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="row mb-5">
|
|
|
|
|
|
|
+ {% set isLocalStrategySetup = passportService.isLocalStrategySetup %}
|
|
|
|
|
+ {% set isLdapStrategySetup = passportService.isLdapStrategySetup %}
|
|
|
|
|
+ <!-- {% set isLocalOrLdapStrategiesEnabled = passportService.isLocalStrategySetup || passportService.isLdapStrategySetup %} -->
|
|
|
|
|
+ <!-- {% set isExternalAuthCollapsible = isLocalOrLdapStrategiesEnabled %} -->
|
|
|
|
|
+ <!-- {% set isRegistrationEnabled = passportService.isLocalStrategySetup && getConfig('crowi', 'security:registrationMode') != 'Closed' %} -->
|
|
|
|
|
+
|
|
|
|
|
+ <div id="login-form"
|
|
|
|
|
+ data-is-local-strategy-setup="{{ isLocalStrategySetup }}"
|
|
|
|
|
+ data-is-ldap-strategy-setup="{{ isLdapStrategySetup }}"
|
|
|
|
|
+ data-is-is-registering="{{ req.query.register or req.body.registerForm or isRegistering }}"
|
|
|
|
|
+ ></div>
|
|
|
|
|
+ <!--<div class="row mb-5">
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
-
|
|
|
|
|
- {% set isLocalOrLdapStrategiesEnabled = passportService.isLocalStrategySetup || passportService.isLdapStrategySetup %}
|
|
|
|
|
- {% set isExternalAuthCollapsible = isLocalOrLdapStrategiesEnabled %}
|
|
|
|
|
- {% set isRegistrationEnabled = passportService.isLocalStrategySetup && getConfig('crowi', 'security:registrationMode') != 'Closed' %}
|
|
|
|
|
-
|
|
|
|
|
<div class="login-dialog mx-auto flipper {% if req.query.register or req.body.registerForm or isRegistering %}to-flip{% endif %}" id="login-dialog">
|
|
<div class="login-dialog mx-auto flipper {% if req.query.register or req.body.registerForm or isRegistering %}to-flip{% endif %}" id="login-dialog">
|
|
|
|
|
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
|
<div class="front">
|
|
<div class="front">
|
|
|
|
|
|
|
|
- {% if isLocalOrLdapStrategiesEnabled %}
|
|
|
|
|
- <form role="form" action="/login" method="post">
|
|
|
|
|
-
|
|
|
|
|
- <div class="input-group mb-3">
|
|
|
|
|
- <div class="input-group-prepend">
|
|
|
|
|
- <span class="input-group-text"><i class="icon-user"></i></span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <input type="text" class="form-control" placeholder="Username or E-mail" name="loginForm[username]">
|
|
|
|
|
- {% if passportService.isLdapStrategySetup %}
|
|
|
|
|
- <div class="input-group-append">
|
|
|
|
|
- <small class="input-group-text text-success">
|
|
|
|
|
- <i class="icon-fw icon-check"></i> LDAP
|
|
|
|
|
- </small>
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
- <div class="input-group">
|
|
|
|
|
- <div class="input-group-prepend">
|
|
|
|
|
- <span class="input-group-text"><i class="icon-lock"></i></span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <input type="password" class="form-control" placeholder="Password" name="loginForm[password]">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="input-group justify-content-center d-flex mt-5">
|
|
|
|
|
- <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
|
|
- <button type="submit" class="btn btn-fill login px-0 py-2">
|
|
|
|
|
- <div class="eff"></div>
|
|
|
|
|
- <span class="btn-label p-3"><i class="icon-login"></i></span>
|
|
|
|
|
- <span class="btn-label-text p-3">{{ t('Sign in') }}</span>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- </form>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
|
|
|
|
|
{% if (
|
|
{% if (
|
|
|
getConfig('crowi', 'security:passport-google:isEnabled') ||
|
|
getConfig('crowi', 'security:passport-google:isEnabled') ||
|
|
@@ -384,7 +354,7 @@
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div> -->
|
|
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|