Results 1 to 6 of 6

Thread: Webmail login from own page

  1. #1
    Join Date
    May 2005
    Location
    London, UK / Brisbane, Australia
    Posts
    102
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Webmail login from own page

    Hi all,

    Since the new webmail it's been difficult trying to get webmail login to work from a external page... it goes to the page but does not login, unless you were previously loged in then loged out then went to the page (keeping in the same browser window). Give it a try yourself to see what I mean.

    website: www.silverstring.net
    code in question:
    Code:
     <form name="Form1" method="post" action="http://mail.silverstring.net/webmail/Login.aspx" id="Form1">
     <input name="hihTimeZone" id="hihTimeZone" type="hidden" />
     <input name="ddlLanguage" id="ddlLanguage" type="hidden" value="en-US" />
      <br><input name="txtLogin" type="text" id="txtLogin" style="WIDTH: 180px" />
      <br><input name="txtPassword" type="password" id="txtPassword" style="WIDTH: 180px" />
      <input type="image" src="./img/btn_login_orng.jpg" name="lnkLogin" value="Login" id="lnkLogin" />
     </form>
    I striped the tables, etc from it so you can see the form code.

    Any help would be great, thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    Could be due to it being a clever asp.net web app, I have quite a lot of experience of creating single sign on to external web apps.

    I noticed that you did not post the viewstate. Something maybe required in the viewstate, they may have manually added something to the viewstate. If you google for viewstate decodeder or similiar you can see what is in the viewstate and decide whether you need to post it. What I would do is try posting it anyway.

    Jim

  3. #3
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Hmmm - this is an odd one...

    1) http://mail.domain.com/ redirects to http://mail.domain.com/webmail/ using standard HTTP redirects.

    2) http://mail.domain.com/webmail/ redirects to http://mail.domain.com/webmail/Default.aspx using a standard HTTP POST, with this viewstate:

    Code:
    <?xml version="1.0" encoding="utf-16"?>
    <viewstate>
      <Triplet>
        <String>1294917955</String>
      </Triplet>
    </viewstate>
    3) http://mail.domain.com/webmail/Default.aspx redirects to http://mail.domain.com/webmail/Login.aspx using standard HTTP redirects, returning this viewstate:

    Code:
    <?xml version="1.0" encoding="utf-16"?>
    <viewstate>
      <Triplet>
        <String>-1170023072</String>
        <Triplet>
          <ArrayList>
            <Int32>3</Int32>
          </ArrayList>
          <ArrayList>
            <Triplet>
              <ArrayList>
                <Int32>3</Int32>
                <Int32>5</Int32>
                <Int32>6</Int32>
                <Int32>9</Int32>
                <Int32>10</Int32>
                <Int32>13</Int32>
                <Int32>14</Int32>
                <Int32>17</Int32>
                <Int32>20</Int32>
                <Int32>22</Int32>
              </ArrayList>
              <ArrayList>
                <Triplet>
                  <Pair>
                    <ArrayList>
                      <String>href</String>
                    </ArrayList>
                    <ArrayList>
                      <String>http://www.vircom.com</String>
                    </ArrayList>
                  </Pair>
                  <ArrayList>
                    <Int32>0</Int32>
                  </ArrayList>
                  <ArrayList>
                    <Triplet>
                      <Pair>
                        <ArrayList>
                          <String>src</String>
                        </ArrayList>
                        <ArrayList>
                          <String>themes/Gray/images/LogoLogin.gif</String>
                        </ArrayList>
                      </Pair>
                    </Triplet>
                  </ArrayList>
                </Triplet>
                <Triplet>
                  <Pair>
                    <ArrayList>
                      <String>innerhtml</String>
                    </ArrayList>
                    <ArrayList>
                      <String>Modus &amp;copy; 2005</String>
                    </ArrayList>
                  </Pair>
                </Triplet>
                <Triplet>
                  <Array>
                    <String>   All rights reserved</String>
                    <String>themes/Gray/images/</String>
                    <String>
                    </String>
                    <String>Email Address:</String>
                  </Array>
                </Triplet>
                <Triplet>
                  <Pair>
                    <Pair>
                      <ArrayList>
                        <String>ErrorMessage</String>
                      </ArrayList>
                      <ArrayList>
                        <String>Please enter your email address</String>
                      </ArrayList>
                    </Pair>
                  </Pair>
                </Triplet>
                <Triplet>
                  <Array>
                    <String>Password:</String>
                  </Array>
                </Triplet>
                <Triplet>
                  <Pair>
                    <Pair>
                      <ArrayList>
                        <String>ErrorMessage</String>
                      </ArrayList>
                      <ArrayList>
                        <String>Please enter your password</String>
                      </ArrayList>
                    </Pair>
                  </Pair>
                </Triplet>
                <Triplet>
                  <Array>
                    <String>Language</String>
                  </Array>
                </Triplet>
                <Triplet>
                  <Pair>
                    <Pair>
                      <ArrayList>
                        <String>Text</String>
                      </ArrayList>
                      <ArrayList>
                        <String>Login</String>
                      </ArrayList>
                    </Pair>
                    <Pair>
                      <ArrayList>
                        <String>onClick</String>
                      </ArrayList>
                      <ArrayList>
                        <String>javascript:showwait();</String>
                      </ArrayList>
                    </Pair>
                  </Pair>
                </Triplet>
                <Triplet>
                  <Array>
                    <String>Log me automatically on this computer.</String>
                    <String>Security warning: Don't use this option if you share this machine with other people.</String>
                  </Array>
                </Triplet>
                <Triplet>
                  <Array>
                    <String>Synchronizing mail, please wait</String>
                  </Array>
                </Triplet>
              </ArrayList>
            </Triplet>
          </ArrayList>
        </Triplet>
        <ArrayList>
          <String>chkAutoLogon</String>
        </ArrayList>
      </Triplet>
    </viewstate>
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  4. #4
    Join Date
    Jun 2005
    Posts
    1,081
    Thanks
    4
    Thanked 15 Times in 15 Posts

    Default

    From Page 209 of the ModusMail manual:

    Custom Login page or Portal Integration
    You can create your own login page or insert the login form in your portal. Your login page
    should include a form with the two following form fields:
    Code:
    <input type="text" name="txtLogin"/>
    <input type="password" name="txtPassword"/>
    The page's form action should be set to "Login.aspx" and the method set to "POST". Here's a simple Login page:
    Code:
    <html>
    <body>
    <form action="Login.aspx" method="POST">
    <input type="text" name="txtLogin"/>
    <input type="password" name="txtPassword"/>
    <input type="submit" value="Login"/>
    </form>
    </body>
    </html>

    If this doesn't work let me know and I'll re-check it with Vircom.

  5. #5
    Join Date
    May 2005
    Location
    London, UK / Brisbane, Australia
    Posts
    102
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default

    Thanks for that Sol... gave it a go but no joy, that way doesn't work either.

  6. #6
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    Hi,

    I edited my post previoulsy but for some reason the change has been lost. When you click the submit button on the proper login page the button causes the .net client javascript library to copy the password and login to viewstate. It then causes a post back to the server. The server then tries to retrive info from viewstate. It fails and kindly tells you to p*** off.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HTML: Custom Helm Login Form
    By Warren Ashcroft in forum Code Sharing
    Replies: 17
    Last Post: 28th September 2006, 02:33 PM
  2. webmail login
    By amac10 in forum ASP.NET
    Replies: 1
    Last Post: 27th June 2006, 04:52 PM
  3. Login form, webmail..
    By larza in forum HTML/CSS/JavaScript
    Replies: 5
    Last Post: 27th March 2006, 08:06 PM
  4. PHPMyAdmin login
    By slippers in forum Technical Support
    Replies: 3
    Last Post: 28th November 2005, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •