getgrav / grav-plugin-login

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

Custom login frontend page does not show form fields #158

Closed niccos closed 6 years ago

niccos commented 6 years ago

Hi, I'm trying a grav 1.4.5 fresh installation. I'm trying plugin login and if I choose a non-default route in result page username and password form fields are not shown. I tried both with quark and with antimatter themes. All settings are by default. I changed the plugin "Login path" in "/my-login" and copied "login.md" from "user/plugins/login/pages/" to "user/pages/my-login/" What am I doing wrong? Thank you. Regards

fl02 commented 6 years ago

Same here, Grav 1.4.5, Login Plugin 2.7.0.

I copied the template login.html.twig and related partials and forms from the plugin template folder to my theme's folder, then set »Login« as template for a custom page, saved them in two different languages.

The »remember me« checkbox as well as the buttons »forgot« and »login« are showing, language switching via the LangSwitcher Plugin 1.4.0 works, alas username and password fields are a no-show. I'm greatful for any help!

fl02 commented 6 years ago

Solved. Thanks to your comment @niccos, I figured it out: forgot to add the form info to the page files, so after I've done that it is now working as expected.

You need to copy the template files from the login plugin's template folder to your theme's template folder.

rhukster commented 6 years ago

Great!!!

niccos commented 6 years ago

Hi Florian, you're right. Now it works as desired. Thanks so much!

sebastianbaumann commented 6 years ago

Hey guys! Could need some help, having the same problem, but copying template files does not help. Any ideas? Do I have to do something else?