+ Reply to Thread
Results 1 to 8 of 8

Thread: how to bypass the login screen

  1. #1
    coolatt is offline Registered User
    Join Date
    Mar 2010
    Location
    Mauritius
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default how to bypass the login screen

    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
    Code:
      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

    Code:
     else if ($RCMAIL->login("me","mypassword",$host)){
    can someone help me ??
    thanks
    Last edited by coolatt; 03-30-2010 at 01:48 PM. Reason: added code tags

  2. #2
    skaero's Avatar
    skaero is online now Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    All you need to do is setup the Auto Login plugin /trunk/plugins/autologon/autologon.php ? Roundcube Webmail

  3. #3
    coolatt is offline Registered User
    Join Date
    Mar 2010
    Location
    Mauritius
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by skaero View Post
    All 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 ??

  4. #4
    skaero's Avatar
    skaero is online now Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    No you would have to upgrade to version 0.3.1.

  5. #5
    coolatt is offline Registered User
    Join Date
    Mar 2010
    Location
    Mauritius
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by skaero View Post
    No you would have to upgrade to version 0.3.1.
    Or it is simpler to perform a fresh installation of version 0.3.1 ?


  6. #6
    skaero's Avatar
    skaero is online now Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    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.

  7. #7
    coolatt is offline Registered User
    Join Date
    Mar 2010
    Location
    Mauritius
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by skaero View Post
    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 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:

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

  8. #8
    skaero's Avatar
    skaero is online now Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts