I'm using the Login plugin to create a private area.
I've created a custom login page with two forms (if that helps) :
One to log in
One to register
When I try to use the registration form, I run into a RuntimeException :
Username should be between 3 and 16 characters, including lowercase letters, numbers, underscores, and hyphens. Uppercase letters, spaces, and special characters are not allowed
Do you have any idea where I could have been doing something wrong ?
I'm using Grav v1.5.5
With those plugins:
Admin Panel v1.8.14
Admin Addon User Manager v2.1.6
Comments v1.2.7
DevTools v1.2.1
Email v2.7.1
Error v1.6.1
Form v2.16.3
Login v2.8.0
Markdown Notices v1.0.1
Problems v2.0.0
I already tryed to re-install the plugin with no success.
If you need any more information, please just ask.
Thank you in advance !
Here is my login.md:
---
title: Espace membre
cache_enable: false
login_redirect_here: false
forms:
login:
action:
method: post
fields:
-
name: username
type: text
id: username
placeholder: "Nom d'utilisateur"
label: "Nom d'utilisateur"
autofocus: true
-
name: password
type: password
id: password
placeholder: "Mot de passe"
label: "Mot de passe"
register:
action:
fields:
-
name: Nom
type: text
validate:
required: true
-
name: Prénom
type: text
validate:
required: true
-
name: Nom d'utilisateur
type: text
validate:
required: true
message: PLUGIN_LOGIN.USERNAME_NOT_VALID
config-pattern@: system.username_regex
-
name: email
type: email
validate:
required: true
message: PLUGIN_LOGIN.EMAIL_VALIDATION_MESSAGE
-
name: password1
type: password
label: Choisissez un mot de passe
validate:
required: true
message: PLUGIN_LOGIN.PASSWORD_VALIDATION_MESSAGE
config-pattern@: system.pwd_regex
-
name: password2
type: password
label: Répétez votre mot de passe
validate:
required: true
message: PLUGIN_LOGIN.PASSWORD_VALIDATION_MESSAGE
config-pattern@: system.pwd_regex
buttons:
-
type: submit
value: Envoyer ma demande
classes: bouton_1
process:
register_user: true
message: "Thanks for registering..."
reset: true
---
Hello,
I'm using the Login plugin to create a private area.
I've created a custom login page with two forms (if that helps) :
When I try to use the registration form, I run into a RuntimeException :
Do you have any idea where I could have been doing something wrong ?
I'm using Grav v1.5.5 With those plugins:
I already tryed to re-install the plugin with no success. If you need any more information, please just ask.
Thank you in advance !
Here is my login.md:
And here is my login.html.twig: