Password entry

  • 1
  • Question
  • Updated 8 years ago
  • Answered
If I want to redirect from another site that is already password protected, is there a way to auto feed the UserID and Password to my Yola password protected page so that my viewers don't have to add a second username and password? Any suggestions on work arounds? I don't want the public to access these pages, but I don't want my readers to have to know the username and password either.
Photo of Michael

Michael

  • 27 Posts
  • 1 Reply Like
  • anxious

Posted 8 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Michael

I'm sorry but I do not know of a way to accomplish this. Perhaps one of our community users can think of something that might work for you.
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
well, you could make another page that is the password protected page. Because php won't work, you will have to use the hash property.
Here is the javascript you insert in the password protected page:

if(window.location.hash=='logintrue')
{
window.location='yoururl.com/yourpage.php';
}
else
{
return false;
}

So when you redirect to the password protected page, make the url so that it endes in #logintrue
Example:
create a page called login.
create a page call usercontent.
Insert the javascript into the login.php page
where it says window.location
change the url to usercontent.php
when you redirect to the password protected page,
the url should be yoursite.com/login.php#logintrue.
That should work.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi Michael, what do you really want to do? Do you want it to redirect them if they already logged in on a password protected page? Are you trying to make a code to work with the page protection feature? If you answer these, I will be able to help you better.

Nathan
Photo of Michael

Michael

  • 27 Posts
  • 1 Reply Like
Correct. They have logged into a password protected site. Now I want to send them to my yola site, which is also password protected...but I don't want them to have to login again, especially using a different password.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Did Kevin's code work?
Photo of Michael

Michael

  • 27 Posts
  • 1 Reply Like
I am not really sure I understand Kevin's code. I am trying to enter into a password protected Yola page. How do I add Javascript to a Yola page? How do I rename a Yola page with #logintrue in it? I don't know much about programming...hence Yola.

Also, is the Yola password site using cookies? Can I invoke from my other site by passing a cookie across?
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hello, first off, you don't have to rename the page. That #logintrue thing is just to redirect the page if they are logged in. But you have to link to that to make it all work in the page protection stuff. Also, to add HTML, CSS, and/or JavaScript to a page, just drag and drop an HTML widget over to the page, paste or type the code in, and click OK. Then, it will add that code to the page! My homepage has over 20 html widgets on there! Thats because of all of the HTML CSS and JavaScript I have on there. You can ask me anything about HTML or CSS! I hope this helps!

Nathan
Photo of Michael

Michael

  • 27 Posts
  • 1 Reply Like
In this example...which is the password protected page...usercontent or login?
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Login is going to be protected and user content isn't. I don't know though. I would assume it is login because you have to insert the JS onto the login page. But, I suggest you use www.Authpro.com for very secure pages. I use it on my site, and it is awesome! The user gets their own username and password too! You can see it on my site: http://my.nathansmusicstudio.cz.cc You can either sign up on my site, or use the Test account on my site.

Test account details:

Login: Test

Password: Test

Hope this helps!

Nathan
Photo of Michael

Michael

  • 27 Posts
  • 1 Reply Like
Also, if I understand correctly, all that would be required for people to get into the page is to add #logintrue to the end of the url and they can get in. Is that correct? Doesn't seem too secure. In fact, couldn't somebody just copy the URL once they are in, and sent that around?
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
you're right Micheal, but that is the only solution i can find so far.
Sorry i can't find something better
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hey guys. If you see the comment I posted above, that will be mroe secure with actual membership where every person can have their own username and password!