Author Topic: 1.1.5 LogOut Issues  (Read 7540 times)

BrotherAndrew

  • Guest
1.1.5 LogOut Issues
« on: April 23, 2016, 10:37:52 PM »
I Upgraded to 1.1.5, and It's Mainly Running Well, but Log Out is Acting Up.  How can that be Fixed?   8)

REQUEST CHECK FAILED
For your protection, access to this resource is secured against CSRF.
If you see this, you probably didn't log out before leaving the web application.

Human interaction is now required to continue.

Please contact your server-administrator.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: 1.1.5 LogOut Issues
« Reply #1 on: April 27, 2016, 11:30:51 AM »
Its hard to guess what the problem could be. There was new CSRF protection added in 1.1.5. May be part of your upgrade did not apply properly or you are using a custom skin which is not doing something right or some JS was cached by your browser....
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

BrotherAndrew

  • Guest
Re: 1.1.5 LogOut Issues
« Reply #2 on: April 27, 2016, 03:29:40 PM »
(/?_task=logout) is how I have my Custom Skin LogOut.  I had to ReDo my Custom Skin a Bit for 1.1.5, but It's Mainly the Same.   8)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: 1.1.5 LogOut Issues
« Reply #3 on: April 28, 2016, 02:52:05 AM »
i think you should look at how the logout button is created in the larry skin. you need to call the switch-task command not just use a regular hyperlink.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

BrotherAndrew

  • Guest
Re: 1.1.5 LogOut Issues
« Reply #4 on: April 28, 2016, 02:02:43 PM »
How can I do that with a Image Link?  Can I Tweak the Below Code a bit?   :)

<a href="?_task=logout"><img src="https://WebMail.com/IMAGES/LOG-OUT-Image.png"></a>

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: 1.1.5 LogOut Issues
« Reply #5 on: April 29, 2016, 02:40:06 AM »
you can do it like this:
Code: [Select]
<a href="./?_task=logout" onclick="return rcmail.command('switch-task','logout',this,event)"><img src="https://WebMail.com/IMAGES/LOG-OUT-Image.png" /></a>but the more roundcubey way is like this:
Code: [Select]
<roundcube:button command="logout" title="logout" image="https://WebMail.com/IMAGES/LOG-OUT-Image.png" />and if you want you can also set the width and height attributes in there
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

BrotherAndrew

  • Guest
Re: 1.1.5 LogOut Issues
« Reply #6 on: April 29, 2016, 12:45:31 PM »
Height & Width have been Obsolete for Ages!  LOL -  I used the Roundcubey Code that you suggested.  Now LogOut is A Okay again!   8)