• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: FEU 3.1.4 forgets nocaptcha and logintemplate parameters.
PostPosted: Thu Oct 10, 2019 4:12 pm 
Offline
Forum Members
Forum Members

Joined: Wed Oct 05, 2011 9:59 am
Posts: 56
I've been trying to upgrade from an earlier version of FEU where I had a simple login with no Captcha that redirected a logged in user to a members only page.

In 3.1.4 I've made a small change to the default login template to do a page redirect when $return_msg is not empty as suggested by the module Help. My page content is
\$1:
    {cms_module_help module='FrontEndUsers' logintemplate='My Login form'}
    {FrontEndUsers nocaptcha=true}


The correct parameters are passed for the template creation stage. When the Submit button is clicked the parameters then don't include nocaptcha or the logintemplate. I've proved that by inserting a print_r($params); at the start of action.login.php As a result the form is represented with a captcha box and the user has to log in again. When the submit button is pressed the $final_msg is displayed even though there is no means for this to happen in my template but is in orig_logintemplate.tpl.

I don't know sufficient about module writing so I haven't been able to correct this myself.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: FEU 3.1.4 forgets nocaptcha and logintemplate parameters
PostPosted: Thu Oct 10, 2019 5:00 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
For security purposes the login form does not by default pass the parameters supplied to the module into the submitted post request.

The best solution is to use {cms_module_hint} for parameters that should persist after submission.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: FEU 3.1.4 forgets nocaptcha and logintemplate parameters
PostPosted: Fri Oct 11, 2019 9:22 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 05, 2011 9:59 am
Posts: 56
Sorry, the suggestion to use cms_module_hint didn't work for me.

Here is my page content:
\$1:
{cms_module_hint module='FrontEndUsers' logintemplate='New FEU Login Form'}
{cms_module_hint module='FrontEndUsers' nocaptcha=true}
{cms_module_hint module='FrontEndUsers' action='login'}
{FrontEndUsers}

The included screenshots show the contents of $params on entering action.login.php. Before submit the correct values of nocaptcha and logintemplate are passed. After submit these values have disappeared.
$1:
File comment: screenshot before submit
before_submit.jpg
before_submit.jpg [ 57.06 KiB | Viewed 201 times ]
I've overwritten the usernames and passwords to protect the innocent.

$1:
File comment: screenshot after submit
after_submit.jpg
after_submit.jpg [ 50.02 KiB | Viewed 201 times ]


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: FEU 3.1.4 forgets nocaptcha and logintemplate parameters
PostPosted: Sat Oct 12, 2019 3:32 pm 
Offline
Forum Members
Forum Members

Joined: Wed Oct 05, 2011 9:59 am
Posts: 56
I've finally managed to make this work by putting the module hints in the Logic tab for the page rather than the Main content tab. I had to do the same for the logout where I wanted to use a post_logouttemplate.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting