Roundcube Community Forum

Recycle Bin => Recycle Bin => Topic started by: codybaker on December 27, 2006, 02:48:44 PM

Title: External Login
Post by: codybaker on December 27, 2006, 02:48:44 PM
I'm trying to setup an external login to my roundcube site. I copied the form fields from the login page, to my login page and it works.... kind of. More specifically, it works if I've already visited the roundcube installation, but if I haven't I get an error "Your Browser Does Not Accept Cookies". I'm assuming that when I visit the roundcube installation I'm picking up that authorization cookie I've heard about in http://trac.roundcube.net/trac.cgi/ticket/1483811 (http://trac.roundcube.net/trac.cgi/ticket/1483811). I tried this with both the SVN version and the .1b2 releases.
Title: Re: External Login
Post by: seansan on December 28, 2006, 08:40:14 AM
I use this - and works fine

Code: [Select]

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML>
<BODY OnLoad='window.setTimeout(&quot;document.login.submit()&quot;,500); '>
 <form action=&quot;=>PATH TO ROUNDCUBE INDEX.PHP /mail2/index.php&quot; method=&quot;post&quot; name=&quot;login&quot;>
 <input name=&quot;_action&quot; value=&quot;login&quot; type=&quot;hidden&quot; />
 <input name=&quot;_user&quot; value=&quot;ENTER_USER_NAME&quot; type=&quot;hidden&quot; />
 <input name=&quot;_pass&quot; value=&quot;ENTER_PASSWORD&quot; type=&quot;hidden&quot; />
 </form>
 <br /><br /><br /><FONT FACE=Garamond SIZE=5>
 Please wait while we transfer you... (Redirecting to ENTER_NAME)
 </FONT>
</BODY>
</HTML>