CMS MADE SIMPLE FORGE

Frontend Users

 

[#12356] Logout action doesn't use post_logouttemplate

avatar
Created By: Richard Williams (rvwilliams)
Date Submitted: Fri Aug 21 06:33:05 -0400 2020

Assigned To:
Version: None
CMSMS Version: 2.2.14
Severity: Major
Resolution: Invalid
State: Open
Summary:
Logout action doesn't use post_logouttemplate
Detailed Description:
Code is missing  from action_logoutform.php that results in the logout process
not using the post_logoutform template.  Inserting the lines from 3.1.5 corrects
the problem.
Specifically add
   $url = $this->create_url($id,'logout',$returnid);
   $tpl->assign('url_logout',$url);
after line56 and 
    $url = $this->create_url($id,'changesettings',$returnid);
    $tpl->assign('url_changesettings',$url);
after the comment at line 61


History

Comments
avatar
Date: 2020-10-20 17:24
Posted By: Robert Campbell (calguy1000)

Compatibility was broken in the 3.x versions.   URL's like this are not provided
to smarty.   You can use {cms_action_url} to create whatever url variables you
want.
      
avatar
Date: 2020-10-21 10:36
Posted By: Richard Williams (rvwilliams)

Sorry I don't understand your comment.  Without the missing code, the
post_logoutform template is never executed.  If the code from 3.1.5 is
incorrect, surely it should be modified/corrected to allow the post_logoutform
template to be executed.
      
Updates

Updated: 2020-10-20 17:24
resolution_id: => 9