{% include 'widget/logo.html' %}
{{ appService.getAppTitle() }}
{% if isLdapSetupFailed() %}
{% endif %}
{% set success = req.flash('successMessage') %}
{% if success.length %}
{% endif %}
LDAP is enabled but the configuration has something wrong.
(Please set the environment variables
{% endif %}
{#
# 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
#}
{% set failedProviderForDuplicatedUsernameException = req.flash('provider-DuplicatedUsernameException') %}
{% if failedProviderForDuplicatedUsernameException != null %}
(Please set the environment variables
DEBUG=crowi:service:PassportService to get the logs)
DuplicatedUsernameException occured
Your {{ failedProviderForDuplicatedUsernameException }} authentication was succeess, but a new user could not be created. See the issue #193.
{{ success }}
{% endif %}
{% set warn = req.flash('warningMessage') %}
{% if warn.length %}
{% for w in warn %}
{{ w }}
{% endfor %}
{% endif %}
{% set error = req.flash('errorMessage') %}
{% if error.length %}
{% for e in error %}
{{ e }}
{% endfor %}
{% endif %}
{% if req.form.errors.length > 0 %}
-
{% for error in req.form.errors %}
- {{ error }} {% endfor %}
{% set message = req.flash('registerWarningMessage') %}
{% if message.length %}
{% for msg in message %}
{{ msg }}
{% endfor %}
{% endif %}
{% endfor %}