RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Older Versions > Release Candidate 2

For more information about the ads and why they're here, please see the FAQ

Reply
  #1  
Old 02-23-2008, 10:30 PM
Registered User
 
Join Date: Feb 2008
Posts: 1
Default Custom Login Form

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-26-2008, 04:50 PM
Registered User
 
Join Date: Dec 2007
Posts: 9
Default Re: Custom Login Form

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:

<body onload='document.login.submit()'>
<form name="login" action="https://.../mail/" method="post">
<input type="hidden" name="_action" value="login">
<input type="hidden" name="_user" value="<%= userData.getLoginName() %>">
<input type="hidden" name="_pass" value="<%= userData.getLoginPassword() %>">
</form>
</body>

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-28-2008, 03:53 PM
Registered User
 
Join Date: Dec 2007
Posts: 9
Default Re: Custom Login Form

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-08-2008, 04:01 PM
Registered User
 
Join Date: Jul 2008
Posts: 1
Question Huh?

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 12-11-2009, 09:01 AM
Registered User
 
Join Date: Dec 2009
Posts: 1
Default

*bump*

Also want to be able to have an custom loginform for my webpage.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 12-11-2009, 02:44 PM
Julius Caesar's Avatar
Super Moderator
 
Join Date: Oct 2008
Location: Netherlands
Posts: 313
Default

Try to modify the login.html is the folder ./skins/default/templates.
__________________
Julius Caesar

You can download the GroupVice theme here.
Sie können GroupVice hier herunterladen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community