This question is too generic and not detailed enough.
I was limited in the number of characters I was allowed to type on my first post. I’ll try again, seems I don’t have those limitations this time.
The current password protection page doesn’t work for me. Every user having the same password isn’t ideal in my case. I need each user to have their own unique passcode. I need a database that I load with any number of passcodes say 10000 for example. I will give users a unique passcode. I will give them a link to a page that has a single input field, “passcode”. They will enter their passcode. If the passcode matches one of the 10000 in the database, they will be sent to a download page where they will be able to download a pdf. Not concerned about passcode in plain text, not concerned about email list or crm. . I just want authorized people to simply go to a webpage, enter a passcode, then be allowed to download a pdf one time, then exit. Can this be done in Wix? Can you give guidance on how to go about doing this? Thx.
@ericmuldrow
https://russian-dima.wixsite.com/meinewebsite/id-check
- Creating a DATABASE with all the keys
- Creating an ENTRY-PAGE (which will manage the access / PW-CONTROL)
- similar Example-Code…
import wixData from 'wix-data';
var userID = //here your user ID (PASSWORD)
$w.onReady(function () { });
export function BTNcheck_click(event) {checkID()}
function checkID (parameter) {
wixData.query("myDATABASE")
.eq("userId", $w('#input1').value)
.find()
.then( (results) => {
if(results.items.length > 0) {
let firstItem = results.items[0];
let items = results.items
//---------------------------------------
})
}