Roundcube Community Forum

Release Support => Release Discussion => Topic started by: frankov on September 04, 2008, 01:20:11 PM

Title: Passing Variables with each link
Post by: frankov on September 04, 2008, 01:20:11 PM
Hi,

I'm trying to find a way to remember the username and password with each possible link.

The reason I want this, is that I want to automatically re-enter the login information after a Log-Off or if the session expires.

So far, I've followed the instructions to be able to auto-fill the username and password from the login page, but I would like to keep the $_GET['_user'] and $_GET['_pass'] throughout the sections.

Is it possible to pass other variables than the ones that are sent (like the variables "_task" and "_mbox") ?

Thanks !
Title: Passing Variables with each link
Post by: rosali on September 04, 2008, 03:35:37 PM
Do you really want to expose usernames and passwords that way? Do you want to see an URL like ...

http://url_to_rc/?_task=mail&_action=logout&[email protected]&_pass=my_top_secret_password

... in the browser history?

Never append such things to an URL!
Title: Passing Variables with each link
Post by: frankov on September 04, 2008, 03:46:05 PM
I know it isn't very secure, but it's going to be used inside a iFrame, and the password is the same for all mailboxes on the system. It is not going to be used on the Internet, just on an intranet.

I really just want the email address and password to be filled when the user logs off or his session expires.

Maybe I could pass the variable in a $_POST, which would be more secure ?
Title: Passing Variables with each link
Post by: rosali on September 04, 2008, 03:51:24 PM
Do you have basic web coding skills?

You could store the user/pass (perhaps encrypted) in a cookie ...
Title: Just the emailadres
Post by: guido on October 23, 2009, 08:31:08 AM
I have the situation where I just want the users to be linked to the roundcube login with their emailadres prefilled. I could make a link like http://www.sbs7.eu/roundcube/[email protected] but this didn't work.

Is it possible to achive this in roundcube?
Title: Passing Variables with each link
Post by: rosali on October 24, 2009, 01:35:23 AM
You need to write a plugin for that. AFAIK it is not possible by default.