RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Older Versions > 0.1 beta 2

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 10-10-2006, 02:48 PM
Registered User
 
Join Date: Oct 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Need help with auto login or auto signup !

Hello,

Is there any way I can pass parameters "username" and "password" to default RoundCube index.php file. I am trying to avoid login screen, because I know username and password and just want user to be redirected automatically to his/her mail account. Because I work mostly with ASP.NET and C#, I don't know PHP very good.

I have tried something like this:
http://mailserver.com/roundcube/inde..._pass=password
but I got login screen again.

Can somebody please help me with this.
Is that possible and if it is what I have to change and how to call URL for RoundCube webmail site.

So I need to avoid somehow login screen, I have "username" and "password" and want to be redirected to mail account promptly without entering username and password in text boxes.

By the way RoundCube is great, AJAX style, design, features, great work.

Regards to all,

Sirola
osirola@inet.hr

-----------------------------------------
hMailServer 4.2.1-B197 integrated MySQL
roundcubemail-0.1beta2
Windows 2003 Server, IIS 6.0
-----------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 10-12-2006, 12:43 PM
Registered User
 
Join Date: Oct 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

search in index.php:

Code:
 else if (isset($_POST['_user']) && isset($_POST['_pass']) &&
      rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), $_POST['_pass'], $host))
  {
change to:

Code:
 else if (isset($_REQUEST['_user']) && isset($_REQUEST['_pass']) &&
      rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), $_REQUEST['_pass'], $host))
  {
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-01-2006, 09:22 PM
Registered User
 
Join Date: Nov 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

I need the same fix for my pages, but this displayed here don't give right... Had something else that need to be configured for work!?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 11-28-2006, 04:15 PM
Registered User
 
Join Date: Nov 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

After changing the $_POST's to $_REQUEST's you need to pass it a url like:

http://mailserver.com/roundcube/index.php?_user=[YOURUSERNAMEHERE]&&_pass=[YOURPASSWORDHERE]&&_action=login"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-14-2007, 09:46 AM
Registered User
 
Join Date: Feb 2007
Posts: 16
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

Hello, Many thanks for this superb Webmail. I'm trying to pass login and password parameters like explained in this post but it's not working. I'm using the last version of Round Cube.

Could you please help me ?

Many many thanks,

Steve.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-21-2007, 06:39 PM
Registered User
 
Join Date: Jun 2006
Posts: 6
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

We actually made our own form and posted it to round cube automatically with javascript. Basically they had already logged in so we can use the same credentials. We are using coldfusion but you can translate the idea to anything you want. This is a form we added to the roundcube root directory.

<form name="login_form" id="login_form" action="./" method="post">

<cfoutput>
<input type="hidden" name="_action" value="login" />
<input type="hidden" name="_user" value="#session.userLogon_str#" />
<input type="hidden" name="_pass" value="#password#" />
</cfoutput>
<input type="submit" value="Open E-mail" style="display:none;" />
</form>

<script>
//function submitForm(){
document.getElementById('login_form').submit();
//};
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 03-08-2007, 02:34 PM
Registered User
 
Join Date: Feb 2007
Posts: 16
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

Hello Road, many thanks for your help. I will try your solution.
But i'm wondering if it's not possible to pass parameters in the URL like in this solution :

http://mailserver.com/roundcube/index.php?_user=[YOURUSERNAMEHERE]&&_pass=[YOURPASSWORDHERE]&&_action=login"

Many thanks,

Octavius.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 03-10-2007, 05:58 PM
Registered User
 
Join Date: Feb 2007
Posts: 29
Downloads: 0
Uploads: 0
Send a message via ICQ to Stevie Send a message via AIM to Stevie Send a message via MSN to Stevie Send a message via Yahoo to Stevie
Default Re: Need help with auto login or auto signup !

You have to pass the parameters like that.

The only other way you can do this is via PHP. That way your details are secure as they cannot be seen.

road's way would be like this in pure HTML.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...sitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Logging You In..</title>
</head>

<body onload="document.rcLogin.submit();">
<center>Please Wait..</center>
<form id="rcLogin" name="rcLogin" method="post" action="https://neoboffinhosting.com/webmail/rc/">
	<input type="hidden" name="_action" value="login" />
	<input type="hidden" name="_user" value="type_ya_email_here" />
	<input type="hidden" name="_pass" value="type_ya_password_here" />
</form>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 03-14-2007, 10:56 AM
Registered User
 
Join Date: Feb 2007
Posts: 16
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

Stevie, you're the best !!! it's working.

Many thanks for your help, I will try with PHP variables.

Have a nice day,

Steve.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 03-15-2007, 10:50 AM
Registered User
 
Join Date: Mar 2007
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Need help with auto login or auto signup !

Hello,

I tried the Stevie solution and it work almost for me but i use something not elegant.

Do I need to change $_request to $_post too ?

So I have a page with few tabs and one of them open an Iframe with : src="test.html"
In test.html I put only the Stevie script.

It work in IE but not in Firefox (display just "Please wait...")

If I load directly test.html it's almost the same, work well in IE, but at the first load of test.html in firefox RC display an erreur (your browser does not accept cookies) if I reload the test.html it's working

Any idea ?

Thanks for your help.
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

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

All times are GMT. The time now is 08:22 PM.


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