Roundcube Community Forum

 

how to bypass the login screen

Started by coolatt, March 30, 2010, 08:47:29 AM

Previous topic - Next topic

coolatt

hello all,

I modified the code of roundcube so that the username & password is hardcoded.
problem is that i have to click on the login button. i want the user to have direct access to its emails.

the following are the modifications i have done to hardcode the username & password:
replace
 else if ($_SESSION['temp'] && !empty($_POST['_user']) && !empty($_POST['_pass']) &&
        $RCMAIL->login(trim(get_input_value('_user', RCUBE_INPUT_POST), ' '),
        get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'), $host)) {
 

by

else if ($RCMAIL->login("me","mypassword",$host)){
can someone help me ?? :(
thanks

SKaero


coolatt

Quote from: skaero;26486All you need to do is setup the Auto Login plugin /trunk/plugins/autologon/autologon.php ? Roundcube Webmail

am using RoundCube  Version 0.2.2. is it possible to use the plugin you mentioned ??
:(

SKaero

No you would have to upgrade to version 0.3.1.

coolatt

Quote from: skaero;26500No you would have to upgrade to version 0.3.1.

Or it is simpler to perform a fresh installation of version 0.3.1 ?

:(

SKaero

If you perform a fresh install you will need to re-import all of your contacts again, I'd recommend just doing a upgrade just follow the upgrade instructions http://trac.roundcube.net/wiki/Howto_Upgrade.

coolatt

Quote from: skaero;26518If you perform a fresh install you will need to re-import all of your contacts again, I'd recommend just doing a upgrade just follow the upgrade instructions Howto_Upgrade ? Roundcube Webmail.

thanks skaero for advice.
but i tried something simpler and it is working.
i added a piece of javascript in login.html so that the form gets automatically submitted.

i got the idea from here:

QuoteHowto: customize your roundcube webmail service in an easy way - Aidam IT-Services Development Blog

but the story doesn't end here... i got to do some other code modifications in RoundCube to actually accomplish my project. :(

SKaero

I'd recommend upgrading it will be way easier to use the plugin api to do maledictions to RoundCube.