![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 ----------------------------------------- |
|
#2
|
|||
|
|||
|
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))
{
Code:
else if (isset($_REQUEST['_user']) && isset($_REQUEST['_pass']) &&
rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), $_REQUEST['_pass'], $host))
{
|
|
#3
|
|||
|
|||
|
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!?
|
|
#4
|
|||
|
|||
|
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" |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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> |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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> |
|
#9
|
|||
|
|||
|
Stevie, you're the best !!! it's working.
Many thanks for your help, I will try with PHP variables. Have a nice day, Steve. |
|
#10
|
|||
|
|||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |