WebSite X5Help Center

 
Tom G.
Tom G.
User

How to open page only after authentication?  en

Autor: Tom G.
Besucht 1839, Followers 1, Geteilt 0  

I have a page, which should only be accessed after specifying proper user id and password.

Right now, I have a login page, from which I open the restricted page (only when user id and passwords are correct). But when someone knows the url of my restricted page, he can specify it and open it skipping the authentication part.

How can I force authentication for the restricted page and not allow to open it without user id and password?

Gepostet am
5 ANTWORTEN - 2 NüTZLICH - 1 KORREKT
Tom G.
Tom G.
User
Autor

Thank you, afs, for quick response!

Well, it doesn’t work for me… Is it ver 17.1.2 problem?

            

Here is my project.

On the EVENT page, press <crtl>e – the EditText.html will open (the functionality there is removed at this point). It is supposed to ask for email and password (specified in Reserved Access) but it doesn’t.

                        

Also, you can type in the url of this page and it will open without authentication...

Mehr lesen
Gepostet am von Tom G.
Tom G.
Tom G.
User
Autor

Looks like WSX5 recognizes the protection, because I'm getting this message when run Preview:

            

But nothing happen when WebSite is uploaded to the server...

Mehr lesen
Gepostet am von Tom G.
Paul M.
Paul M.
Moderator

Hello Tom,

Pages with .html extensions can never act as protected pages in WebSite X5.  The pages are locked using PHP code.

Therefore you need to change the file extension of the 'event' page to .php in Step 3  -  Map > Page > Properties > Expert > File Name Format (however, this should happen automatically for every page you set as 'Locked' in the website map...  there should be no need to do this manually).

Your new locked page URL will then be as follows:

http://www.ownitconsignment.com/event.php

Kind regards,

Paul

Search the WebSite X5 Help Center (multilingual)

Mehr lesen
Gepostet am von Paul M.
Tom G.
Tom G.
User
Autor

Hi Paul,

My EVENT page should not be protected. From this page, after pressing <ctrl>e, the EditText.html opened. And that was wrong. I have changed the page to EditText.php and it worked!

Thank you Paul and afsoftware for your input!

Mehr lesen
Gepostet am von Tom G.