Roundcube Community Forum

Release Support => Requests => Topic started by: kev53001 on August 21, 2012, 12:55:05 PM

Title: Form from my website to round cube
Post by: kev53001 on August 21, 2012, 12:55:05 PM
Hello,
I have some problems to connect me from my website at the round cube.
I would like a login form from my website, after send the information to the rouncube index.php and like that an automatic connexion.
But the problem it this one:

<head>

<script type="text/javascript" src="program/js/jquery.min.js?s=1315898160"></script>
<script type="text/javascript" src="program/js/common.js?s=1331508300"></script>
<script type="text/javascript" src="program/js/app.js?s=1331508300"></script>
<script type="text/javascript">
/* <![CDATA[ */

var rcmail = new rcube_webmail();
rcmail.set_env({"task":"login","x_frame_options":"sameorigin","keep_alive":60,"action":"","comm_path":".\/?_task=login","request_token":"0feb2d187e6052b057157fc53852246d"});
rcmail.add_label({"loading":"Cargando...","servererror":"\u00a1Error del servidor!"});
rcmail.gui_object('message', 'message');
rcmail.gui_object('loginform', 'form');
/* ]]> */
</script>
</head>
STARTING CONTACT FORM
<input type="hidden" name="_token" value="0feb2d187e6052b057157fc53852246d" />
<input type="hidden" name="_task" value="login" /><input type="hidden" name="_action" value="login" /><input type="hidden" name="_timezone" id="rcmlogintz" value="_default_" /><input type="hidden" name="_dstactive" id="rcmlogindst" value="_default_" />
....

This number always change. Like a Captcha.
0feb2d187e6052b057157fc53852246d

I tried to copy and past all the head content in my webpage and that's work but only one time because after this key change.
Sorry for my english thanks for all,
Here is my contact form. I dont think it s the problem.

<form method="post" action="mail/index.php">
       <p>Correo :</p>
                     <input name="_user" id="rcmloginuser" value="" size="35" type="text" />
      <p>ContraseƱa :</p>
                     <input name="_pass" id="rcmloginpwd" value="" size="35" type="password" />
        <input type="submit" class="button mainaction" value="Enviar"/>
       <input name="action" value="login" type="hidden" />
</form>
Title: Re: Form from my website to round cube
Post by: SKaero on August 21, 2012, 09:26:08 PM
You'll have to add a plugin to RoundCube to be able to use that style of login. Take a look at the auto login plugin for an example.
Title: Re: Form from my website to round cube
Post by: kev53001 on August 22, 2012, 05:54:13 AM
thanks i got it