Roundcube Community Forum
News and Announcements => General Discussion => Topic started by: onlinegamesnz on April 28, 2012, 03:16:25 AM
-
Hi, i am trying to enable a sererate webmail login form to login a user to roundcube
http://megahosting.co.nz/index2.html
The top right of the page is a webmail login link that executes a login popup window. I am trying to use that form to POST the login details for roundcube webmail.
The roundcube directory is located at http://megahosting.co.nz/webmail/
i am trying to use
<form name"form" action="./" method="post" class="popup-form">
<roundcube:object name="loginform" form="form" />
<fieldset>
<label class="popup">Username</label>
<input class="input" type="text" size="25" />
<label class="popup">Password</label>
<input class="input" type="password" size="25" />
<button type="submit" class="submit-popup">Webmail Login</button>
But i am getting a HTTP Verb error?
Any ideas?
Thanks!
-
Anybody?? Please
-
The <roundcube:object> tag will only work in the RoundCube template system. You'll need to use a standard web form for the username and password and a RoundCube plugin to validate the post data to login to RoundCube.
-
Thanks, is this plugin avaliable for download?
-
Would i be http_auth??
I have
<form action="webmail/plugins/http_auth/http_auth.php" method="post" class="popup-form" id="name"form">
Thanks!
-
No it needs to be plugin that marks the post as valid, you can make a modified version of the autologon plugin http://trac.roundcube.net/browser/trunk/roundcubemail/plugins/autologon/autologon.php to do what you want.
-
Thanks, i have tried the following with no luck.
<form action="webmail/plugins/autologon/autologon.php" method="post" class="popup-form" name="form">
<fieldset>
<label class="popup">Username</label>
<input class="input" type="text" size="25" />
<label class="popup">Password</label>
<input class="input" type="password" size="25" />
<button type="submit" class="submit-popup">Webmail Login</button>
</fieldset>
</form>
Any ideas? thanks
-
The plugin needs to be modified before it will work with a form, you also have to activate it in the config, and finally you need to post the form to the main RoundCube index.php file not the plugin file itself.
-
Hi, is there an easier way to do this? would it be easier to directly query the mysql db?
Thanks!
-
The users aren't stored in the MySQL database so you'll need to post through RoundCube to connect the IMAP. Its not really that hard if you have basic knowledge of PHP.
-
im stuck as im really new to PHP
has anyone got a modified verison of this script that will allow POST from a form?