Roundcube Community Forum

 

1.1.5 LogOut Issues

Started by BrotherAndrew, April 23, 2016, 10:37:52 PM

Previous topic - Next topic

BrotherAndrew

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.

JohnDoh

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

(/?_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)

JohnDoh

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

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>

JohnDoh

you can do it like this:
<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:
<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

Height & Width have been Obsolete for Ages!  LOL -  I used the Roundcubey Code that you suggested.  Now LogOut is A Okay again!   8)