How to add Logout link into menu? May 19, 2019, 12:46:48 PM I'am trying to put logout link in menu area. This is the part of the code:Code: [Select]array( 'path' => 'index/logout?csrf_token='.Csrf::$token, 'label' => 'Exit', 'icon' => '<i class="fa fa-door"></i>'But it's not working. Can someone help me? Quote Selected
Re: How to add Logout link into menu? Reply #1 – May 19, 2019, 02:59:25 PM I just use a link pointing to "index/logout" Quote Selected
Re: How to add Logout link into menu? Reply #2 – May 19, 2019, 05:54:03 PM Quote from: memiked – May 19, 2019, 02:59:25 PMI just use a link pointing to "index/logout"I tried to do this but I getting this error: Access Denied HTTP ERROR 403 Quote Selected
Re: How to add Logout link into menu? Reply #3 – May 19, 2019, 08:13:16 PM I did experience somewhat a same issue.(localhost building) So I put into the htaccess file "rewritebase/myapp"I enable the user authentication, found I was hindered with logging in and out during a test build so disabled that for the time being. experienced a blank screen in the build process when going to "review" in the interface, disabled authentication solved that too. Made sense on the test build authentication was last thing to enable and configuring rights for me. Once there Authentication enabled the users "My Account and Logout button was now in the Menu selection.I found during that process the file "PageAccessManager.php" has the logic to handle the index file with logged in user.Also I could quickly fine tune some access rights in that file as well, of course editing after the build was completed since through the interface files will be overwritten if not deselected for overwrite. Maybe this helps. Quote Selected Last Edit: May 19, 2019, 08:22:48 PM by memiked 1 Likes
Re: How to add Logout link into menu? Reply #4 – May 19, 2019, 09:17:19 PM Error 403 means access forbidden. Please make sure you are passing the Crsf::$token to the logout link Quote Selected
Re: How to add Logout link into menu? Reply #5 – May 20, 2019, 03:49:45 PM Quote from: Emman – May 19, 2019, 09:17:19 PMError 403 means access forbidden. Please make sure you are passing the Crsf::$token to the logout linkHow can I do this? Quote Selected
Re: How to add Logout link into menu? Reply #6 – May 21, 2019, 11:30:56 AM Quote from: Welisson – May 19, 2019, 12:46:48 PMI'am trying to put logout link in menu area. This is the part of the code:Code: [Select]array( 'path' => 'index/logout?csrf_token='.Csrf::$token, 'label' => 'Exit', 'icon' => '<i class="fa fa-door"></i>'But it's not working. Can someone help me?Please what's not working on this? This is supposed to work. Quote Selected