Roundcube Community Forum

 

how can I login to RC mail from my home page

Started by Yann, April 05, 2008, 08:35:01 PM

Previous topic - Next topic

Yann

I wanted to to have a form on my index page (home page) of my website so users can log into RC mail with their credentials.

rosali

You should see what has to be edited ...

<form name=&quot;f&quot; action=&quot;[url]http://my_path_to_rc/?_task=mail&quot;[/url] method=&quot;post&quot;>
User: <input name=&quot;_user&quot;>
Password: <input name=&quot;_pass&quot; type=&quot;password&quot;>
<input name=&quot;_action&quot; value=&quot;login&quot; type=&quot;hidden&quot; />
<input name=&quot;_host&quot; value=&quot;myhost&quot; type=&quot;hidden&quot;>
<input type=&quot;submit&quot;>
</form>

-Roland
Regards,
Rosali

Yann

thanks, it's working. Now i have to figure out how redirect the logout to the index page. Thanks

rosali

skins/default/templates/login.html ...

Put there a meta tag to redirect or some javascript to do the job.

-Roland
Regards,
Rosali

bgbearcatfan

sorry to bump an old thread.  Can create a new one if required.

When i use the above code, it works in firefox, but when using i.e., i get the error:

HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

Any ideas why?

rosali

IMO, this is not a RoundCube issue.

That's what I googled:
Quote405 errors in the HTTP cycle

Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle:

•Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
•Open an IP socket connection to that IP address.
•Write an HTTP data stream through that socket.
•Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '405'.

Fixing 405 errors - general

405 errors often arise with the POST method. You may be trying to introduce some kind of input form on the Web site, but not all ISPs allow the POST method necessary to process the form.

All 405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site, so should easily be explained by your ISP.

Fixing 405 errors - CheckUpDown

This error should simply never occur on your CheckUpDown account. If it does, it typically indicates defective programming of our systems or of the Web server which manages your site. We use the GET method only, which all Web servers should allow (otherwise no-one would ever be able to see your Web site).

Please contact us (email preferred) whenever you encounter 405 errors - there is nothing you can do to sort them out. We then have to liaise with your ISP and the vendor of your Web server software to agree the exact reason for the error.
Regards,
Rosali

bgbearcatfan

Oh, I don't doubt that one bit.  I'm sure it's something on my end, was just curious if anyone had any ideas for me.  My code is below, does everything look ok to you?


Username:
Password:



      

bgbearcatfan

Nevermind, I'm an idiot, and fail at coding... It should be:


      Username:
      

      Password:
      

      


      



which works perfectly... Sorry for wasting your time man...

rosali

Regards,
Rosali