Release Support > Release Candidate 2

Custom Login Form

(1/2) > >>

axelseaa:
Is it possible to create a custom login form that will post to roundcube for login? So far i have not been able to get this to work correctly, it always says incorrect password.

adalle:
We do something like this. We already have members logging into our site with their credentials, so we provide a "Get your Webmail" link that is a JSP page that invokes a perl script to auto-create their roundcube user if it doesn't already exist (and do extra things like setting up their default identity etc.), and then prints out this:









It does work quite well. I am having an issue where sometimes Roundcube complains about the browser not supporting cookies and fails to login, but re-posting to the page always works. Must be something to do with expired sessions...

adalle:
The cookie issue of course, is because when you first loadup the login page, it creates a session and sets the roundcube_session cookie.

To get around this, since we want to bypass the login-page, I had to have our page that launches to roundcube actually access the login page to create the session and scrape the Set-Cookie header, update the rouncube session database with the IP address of the client for the matching newly-created session, and return the Set-Cookie header in our response.

As a result, the client browser will already have the cookie set when they POST to the login page, resulting in successful login.

This could be avoided if Roundcube was patched to allow for an auto-login like this.

sbridge:
I can't get this to work...

I just got RC installed in my CPanel and love it. I REALLY want to have a custom login, as described in this forum, but I'm confused.

How would I create a basic form requesting username and password and then parse the credentials to RC? Is that possible?

MSglol:
*bump*

Also want to be able to have an custom loginform for my webpage.

Navigation

[0] Message Index

[#] Next page

Go to full version