Thursday, October 14, 2010

Modx 2 Login Snippet

The login snippet installable from package management have several flaw in certain usage.
We have a client who has login form @ the very top.

When user login into the site, the user will be redirected to to site_url (start) page if the last page is his/her first visit or landing page.
@solution: Edit Login snippet, and comment off line #155

2nd problem, since we have disabled redirect, user will be known as "not yet authenticated" in the current page, unless he/she click to another page.
@solution: Edit Login snippet, and append this line #148
$authenticated = true;

No comments: