How to grant access to a page?
lattanzi
Posts: 22
Hi guys,
here is my situation: i'm using a web interface (tpd3 and saveas html feature...no tp), i have an "home page" with two buttons which redirects the user to other two pages. I'd like to grant acces to these target pages just to authorized users.
I'm thinking of creating a popup page, to be shown on the homepgae button click, with a keypad to insert the password, if the password is correct i close the popup and show the target page. How can i do it?
Thanks
here is my situation: i'm using a web interface (tpd3 and saveas html feature...no tp), i have an "home page" with two buttons which redirects the user to other two pages. I'd like to grant acces to these target pages just to authorized users.
I'm thinking of creating a popup page, to be shown on the homepgae button click, with a keypad to insert the password, if the password is correct i close the popup and show the target page. How can i do it?
Thanks
0
Comments
you defined your webpanel in your DEFINE_DEVICE section right? Did you combine the two? this isnt necesarry, but it's just handy...
in your touchpanel design, you can make a button a "keypad button". If you do this, and the user presses that button, a keypad pops up. When a user enters a code, and presses enter, a string is sent back to your netlinx frame. Do it like this:
then you can test that code against your own code, and when it matches, make the page flip, otherwise, send a text back to the touchpanel telling the user he isnt granted...
Hope this helps you out, i can give you some better example if you want