{% 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 %}
{% if (
getConfig('crowi', 'security:passport-google:isEnabled') ||
getConfig('crowi', 'security:passport-github:isEnabled') ||
getConfig('crowi', 'security:passport-facebook:isEnabled') ||
getConfig('crowi', 'security:passport-twitter:isEnabled')||
getConfig('crowi', 'security:passport-oidc:isEnabled') ||
getConfig('crowi', 'security:passport-saml:isEnabled')
) %}
{% else %}
{% endif %}
{% if config.crowi['security:registrationMode'] != 'Closed' %}
{% if getConfig('crowi', 'security:passport-google:isEnabled') %}
{% endif %}
{% if getConfig('crowi', 'security:passport-github:isEnabled') %}
{% endif %}
{% if getConfig('crowi', 'security:passport-facebook:isEnabled') %}
{% endif %}
{% if getConfig('crowi', 'security:passport-twitter:isEnabled') %}
{% endif %}
{% if getConfig('crowi', 'security:passport-oidc:isEnabled') %}
{% endif %}
{% if getConfig('crowi', 'security:passport-saml:isEnabled') %}
{% endif %}
{# ./d-flex flex-row flex-wrap #}
{% endif %}
{% if config.crowi['security:registrationMode'] != 'Closed' %}
{{ t('Sign up is here') }}
{% else %}
{% endif %}
{% if config.crowi['security:registrationMode'] == 'Restricted' %}
{% endif %} {# if registrationMode == Closed #}
GROWI.ORG
{{ t('page_register.notice.restricted') }}
{{ t('page_register.notice.restricted_defail') }}