|
@@ -42,12 +42,12 @@
|
|
|
# The case that there already exists a user whose username matches ID of the newly created LDAP user
|
|
# The case that there already exists a user whose username matches ID of the newly created LDAP user
|
|
|
# https://github.com/weseek/growi/issues/193
|
|
# https://github.com/weseek/growi/issues/193
|
|
|
#}
|
|
#}
|
|
|
- {% set failedProvider = req.flash('provider-DuplicatedUsernameException') %}
|
|
|
|
|
- {% if failedProvider != null %}
|
|
|
|
|
|
|
+ {% set isDuplicatedUsernameExceptionOccured = req.flash('isDuplicatedUsernameExceptionOccured') %}
|
|
|
|
|
+ {% if isDuplicatedUsernameExceptionOccured != null %}
|
|
|
<div class="alert alert-warning small">
|
|
<div class="alert alert-warning small">
|
|
|
<p><strong><i class="icon-fw icon-ban"></i>DuplicatedUsernameException occured</strong></p>
|
|
<p><strong><i class="icon-fw icon-ban"></i>DuplicatedUsernameException occured</strong></p>
|
|
|
<p>
|
|
<p>
|
|
|
- Your {{ failedProvider }} authentication was succeess, but a new user could not be created.
|
|
|
|
|
|
|
+ Your LDAP authentication was succeess, but a new user could not be created.
|
|
|
See the issue <a href="https://github.com/weseek/growi/issues/193">#193</a>.
|
|
See the issue <a href="https://github.com/weseek/growi/issues/193">#193</a>.
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -145,9 +145,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
+ {% if passportGoogleLoginEnabled() || passportGithubLoginEnabled() || passportFacebookLoginEnabled() || passportTwitterLoginEnabled() %}
|
|
|
<hr>
|
|
<hr>
|
|
|
<div class="input-group m-t-15 m-b-10 mx-auto d-flex flex-row justify-content-around flex-wrap">
|
|
<div class="input-group m-t-15 m-b-10 mx-auto d-flex flex-row justify-content-around flex-wrap">
|
|
|
- {#% if passportGoogleLoginEnabled() %#}
|
|
|
|
|
|
|
+ {% if passportGoogleLoginEnabled() %}
|
|
|
<form role="form" action="/passport/google" method="get">
|
|
<form role="form" action="/passport/google" method="get">
|
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-google">
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-google">
|
|
|
<span class="btn-label"><i class="icon-social-google"></i></span>
|
|
<span class="btn-label"><i class="icon-social-google"></i></span>
|
|
@@ -155,8 +156,8 @@
|
|
|
</button>
|
|
</button>
|
|
|
<div class="small text-right">by Google Account</div>
|
|
<div class="small text-right">by Google Account</div>
|
|
|
</form>
|
|
</form>
|
|
|
- {#% endif %#}
|
|
|
|
|
- {#% if passportGithubLoginEnabled() %#}
|
|
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% if passportGithubLoginEnabled() %}
|
|
|
<form role="form" action="/auth/passport/github" method="get">
|
|
<form role="form" action="/auth/passport/github" method="get">
|
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-github">
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-github">
|
|
@@ -165,8 +166,8 @@
|
|
|
</button>
|
|
</button>
|
|
|
<div class="small text-right">by Github Account</div>
|
|
<div class="small text-right">by Github Account</div>
|
|
|
</form>
|
|
</form>
|
|
|
- {#% endif %#}
|
|
|
|
|
- {#% if passportFacebookLoginEnabled() %#}
|
|
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% if passportFacebookLoginEnabled() %}
|
|
|
<form role="form" action="/auth/passport/facebook" method="get">
|
|
<form role="form" action="/auth/passport/facebook" method="get">
|
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-facebook">
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-facebook">
|
|
@@ -175,8 +176,8 @@
|
|
|
</button>
|
|
</button>
|
|
|
<div class="small text-right">by Facebook Account</div>
|
|
<div class="small text-right">by Facebook Account</div>
|
|
|
</form>
|
|
</form>
|
|
|
- {#% endif %#}
|
|
|
|
|
- {#% if passportTwitterLoginEnabled() %#}
|
|
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% if passportTwitterLoginEnabled() %}
|
|
|
<form role="form" action="/auth/passport/twitter" method="get">
|
|
<form role="form" action="/auth/passport/twitter" method="get">
|
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
<input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-twitter">
|
|
<button type="submit" class="fcbtn btn btn-danger btn-1b btn-login-twitter">
|
|
@@ -185,8 +186,9 @@
|
|
|
</button>
|
|
</button>
|
|
|
<div class="small text-right">by Twitter Account</div>
|
|
<div class="small text-right">by Twitter Account</div>
|
|
|
</form>
|
|
</form>
|
|
|
- {#% endif %#}
|
|
|
|
|
|
|
+ {% endif %}
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
|
|
|
<hr>
|
|
<hr>
|
|
|
|
|
|