Author Topic: how can I login to RC mail from my home page  (Read 6878 times)

Offline Yann

  • Jr. Member
  • **
  • Posts: 46
how can I login to RC mail from my home page
« on: April 05, 2008, 08:35:01 PM »
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.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: how can I login to RC mail from my home page
« Reply #1 on: April 06, 2008, 08:17:35 AM »
You should see what has to be edited ...

Code: [Select]
<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
__________________
MyRoundcube Project (commercial)

Offline Yann

  • Jr. Member
  • **
  • Posts: 46
Re: how can I login to RC mail from my home page
« Reply #2 on: April 06, 2008, 10:32:50 AM »
thanks, it's working. Now i have to figure out how redirect the logout to the index page. Thanks

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: how can I login to RC mail from my home page
« Reply #3 on: April 06, 2008, 11:58:02 AM »
skins/default/templates/login.html ...

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

-Roland
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline bgbearcatfan

  • Jr. Member
  • **
  • Posts: 12
how can I login to RC mail from my home page
« Reply #4 on: November 04, 2009, 05:40:55 PM »
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?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
how can I login to RC mail from my home page
« Reply #5 on: November 05, 2009, 12:44:43 AM »
IMO, this is not a RoundCube issue.

That's what I googled:
Quote

405 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
__________________
MyRoundcube Project (commercial)

Offline bgbearcatfan

  • Jr. Member
  • **
  • Posts: 12
how can I login to RC mail from my home page
« Reply #6 on: November 05, 2009, 03:30:47 PM »
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:



      

Offline bgbearcatfan

  • Jr. Member
  • **
  • Posts: 12
how can I login to RC mail from my home page
« Reply #7 on: November 05, 2009, 03:52:52 PM »
Nevermind, I'm an idiot, and fail at coding... It should be:


      Username:
      

      Password:
      

      


      



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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
how can I login to RC mail from my home page
« Reply #8 on: November 05, 2009, 03:52:58 PM »
For a first glance it looks ok.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)