Hello,
Is there any simple way with Couch to password protect a page, without storing the actual password in the source code.
Basically, I have a page called "contrats.php".
Each entries should not be accessible without a password, and that password would a value inside a region named "my_uid".
I have made a simple image to show what I need.
Any idea how to do it?
**Important to note. I cannot create a page, where you enter a code and get redirected to the right contract, since someone could just enter every contract numbers and access all the contracts. Also, the direct link will be sent to the clients. So just to make sure someone cannot just change the URL and access any contracts, I would like a very simple protection, with the contract number.
If I send a contract to a client, he knows what the number of the contract will be, so he will be able to unlock the page very easily. But someone that doesn't know what the contract number is, even if he has the link, won't be able to unlock the page.
That's why I would need something on the template page, so that it applies to every pages, and always use the "my_uid" region data as the password.
Is there any simple way with Couch to password protect a page, without storing the actual password in the source code.
Basically, I have a page called "contrats.php".
Each entries should not be accessible without a password, and that password would a value inside a region named "my_uid".
I have made a simple image to show what I need.
Any idea how to do it?
**Important to note. I cannot create a page, where you enter a code and get redirected to the right contract, since someone could just enter every contract numbers and access all the contracts. Also, the direct link will be sent to the clients. So just to make sure someone cannot just change the URL and access any contracts, I would like a very simple protection, with the contract number.
If I send a contract to a client, he knows what the number of the contract will be, so he will be able to unlock the page very easily. But someone that doesn't know what the contract number is, even if he has the link, won't be able to unlock the page.
That's why I would need something on the template page, so that it applies to every pages, and always use the "my_uid" region data as the password.