Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Custom Webmail login form directly to Roundcube

Discussion in 'cPanel Developers' started by diogo_plta, Nov 24, 2013.

  1. diogo_plta

    diogo_plta Registered

    Nov 24, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Accessing you'll open the roundcube directly after login.

    The login form of above URL have a hidden input out of the form:
    <input type="hidden" id="dest_uri" value="/3rdparty/roundcube" />

    But when I try to use this dest_uri var in a custom login form, action to '', it don't redirect.

    How to use this dest_uri var to create a custom login form to redirect to /3rdparty/roundcube?

    For example sending by GET or POST and did'nt work:
    <form id="login_form" action="http://DOMINIO:2095/login?dest_uri=/3rdparty/roundcube" method="post" target="_self">
    <input type="hidden" id="dest_uri" value="/3rdparty/roundcube" />
                                <div class="input-req-login"><label for="user">Endereço de e-mail</label></div>
                                <div class="input-field-login icon username-container">
                                    <input name="user" id="user" autofocus="autofocus" value="" placeholder="Digite seu endereço de e-mail." class="std_textbox" type="text"  tabindex="1" required>
                                <div style="margin-top:30px;" class="input-req-login"><label for="pass">Senha</label></div>
                                <div class="input-field-login icon password-container">
                                    <input name="pass" id="pass" placeholder="Digite a sua senha de e-mail." class="std_textbox" type="password" tabindex="2"  required>
                                <div class="controls">
                                    <div class="login-btn">
                                        <button name="login" type="submit" id="login_submit" tabindex="3">Entrar</button>
                                <div class="clear" id="push"></div>

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice