Okay, feeling stupid here.
I'm trying to get the hang of installing a login form on a page using the Login component that would allow members to see only specific pages. At this moment, I have a test site that I'm using to teach myself how to do this, so any mistakes won't affect anything critical.
I've installed Login and followed, to the tee, the tutorial outlined on this page:
http://rtfm.modx.com/display/ADDON/Login.Basic+Setup
I do have a test user, which I added through the backend (I'll teach myself how to have visitors become members on their own after I get over this first hurdle).
What I see is that, after the 'member' adds the username and password in the form field (which is the username and password I gave the member through the control panel) and clicks the Login button, the page reloads on the same page (which in this case is the home page). When I look at the resulting source code of the page, the form shows it posting it to the URL of the site, like this:
<form class="loginLoginForm" action="http://www.sample.com/" method="post">
...which no doubt comes from this part of the lgnLoginTpl chunk:
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
Not that it matters, note that this forum added the "rel="nofollow"" tag to my code automatically. It's not part of my code.
Anyway, that, and the rest of the tpl code is a direct copy/paste from the tutorial. However, it does not take the visitor to the success page, it just reloads the page the form is located on. Some notes:
1. Both the test member and the super admin are part of the 'Members' User Group.
2. Unlike in the tutorial, the pages' access permissions were arrived at by going to Security>Resource Groups and dragging the pages from the right column to the left column, under the 'Members Only' Resource group. In the tutorial, it just has you check the access box from within the page's Access Permissions tab (is that tab missing from the current MODx releases?)
3. The form is called, not directly on the page's template, but rather through a chunk, which I assume shouldn't make any kind of difference.
4. This test site is running under v2.2.2
5. Only the page IDs were changed from the tutorial to reflect the page IDs in my test site.
What am I missing? Is that tutorial complete?
Thank you in advance.
[ed. note: waizen last edited this post 14 years, 1 month ago.]