getgrav / grav-plugin-login

Grav Login Plugin
http://getgrav.org
MIT License
44 stars 54 forks source link

'Allow User Registration' instructions in README not working #286

Open pamtbaau opened 2 years ago

pamtbaau commented 2 years ago

Triggered by a Discourse post, I've been trying to add a menu item pointing to the user registration form.

According the README there are 2 options to realise this:

  1. "The first and easiest way is to add a page with the same slug (route) as the registration form. [..]"
  2. "A second way is to add a custom menu item that points to the registration page [..]"

I've tried them both using the following config in login.yaml:

route_register: '/register'
user_registration:
  enabled: true

Re 2. Adding a menu-item with a url pointing to /register, works fine. The registration form is shown correctly.

Please note that "This works in most themes" is however not exactly true. This might have been true on 2 Dec 2015, but is no longer the case.

Re 1. I've tried several options, but cannot get this to work. The following attempts are not working:

Only copying file /login/pages/register.md into folder 04.register/ did work.

Am I misinterpreting the instructions in README, or should the instructions be updated?