Auto-Login on Webpage using Javascript

Comments

9 comments

  • Avatar
    Blake Freeman
    Hi Alex,

    I'm not a developer, so I don't have any input of my own on this question, but I did find this article that may be interesting to you.

    We'd be very interesting in know if you solve this problem!
    0
    Comment actions Permalink
  • Avatar
    Darius Aleksas
    I am trying this out today!
    0
    Comment actions Permalink
  • Avatar
    Alex Coombs
    Okay, cool. I see if I can get this to work inside RV. Thanks Blake! I'll comment back after I test (about a day or two).
    0
    Comment actions Permalink
  • Avatar
    Darius Aleksas
    Alex, could you share the script with us that works outside RV. I would like to test it with my YouTube Red account.
    0
    Comment actions Permalink
  • Avatar
    Alex Coombs
    Unfortunately, it is very specific to the site that it is being used with. 
    0
    Comment actions Permalink
  • Avatar
    Robb Price
    Alex, were you able to get this working with the method mentioned by Blake?
    0
    Comment actions Permalink
  • Avatar
    Darius Aleksas
    Brian, I gave it a shot yesterday and it did not work with YouTube. I am not getting how exactly I post the webpage I am trying to access. Currently I am using iFrame to embed YouTube playlists, so I simply added this part of code to the existing. Do I need to add this as a separate widget with this code in my presentation or merge it with the existing HTML code I am using to embed YouTube playlist? How do I connect those?
    0
    Comment actions Permalink
  • Avatar
    Brian Miller
    Alex,

    I have used a version of the following code placed in the html widget to successfully log into secured web pages.

    <HTML><HEAD>
    <script >
        function login() {

            document.forms[0].action = "http://www.example.com";
            document.forms[0].submit();
        }
    </script>
    </HEAD>
    <BODY onLoad="login()">

        <form action="http://www.example.com"; method="post">
                        
    <input type="hidden" name="login" value="1" />
        <input type="hidden" name="username" value="bob" />
            <input type="hidden" name="password" value="smith24" />
    </form>
        
        
    </BODY>
    </HTML>
    0
    Comment actions Permalink
  • 0
    Comment actions Permalink

Please sign in to leave a comment.