Last year, Unlock Labs introduced a hook that can be used to require users to submit a password before they can purchase and mint an NFT membership or ticket. This popular feature just received two new additions: the ability to add multiple passwords for an individual smart contract, and the ability to add a cap for the maximum number of uses of each password associated with a particular smart contract.
Event organizers often want to restrict who can mint a ticket and attend their events. When setting up their event with Unlock Events, they can add onchain passwords, making it impossible to mint a ticket without entering a valid password.
The Unlock-powered membership smart contract rejects any transaction that is not submitted with a proof that the user knows the password.
By using passwords checked at mint-time by a smart contract, it is not possible to bypass the password by using another front-end or another mechanism to send the transaction.
![](https://storage.googleapis.com/papyrus_images/4770b4c7ffd8cab8b1c1c703c8fc8a2b.png)
There are a number of use cases where event organizers and other creators want to set multiple passwords that they can share with different groups or individuals. Oftentimes, this request is paired with a related feature request to set a “cap” on the number of times any particular password can be used. (For example, an organizer may give a password for access to a special VIP ticket tier to a particular sponsor and their guests.)
Together, these features give organizers increased peace of mind in the situation where a prospective attendee or other individual “leaks” a password online. This helps to reduce the risk of a situation where a single password could spread beyond its intended context.
These features are now fully supported on the Unlock checkout through password hooks.
![](https://storage.googleapis.com/papyrus_images/79adf9863b9f7587d61534333a144616.png)
![highlight](/api/highlight?text=Unlock%20Labs%20Feature%20Announcement%3A%20Multiple%20Passwords%20and%20Password%20Usage%20Caps&author=Unlock%20Protocol&url=%40unlockprotocol&avatarUrl=https%3A%2F%2Fstorage.googleapis.com%2Fpapyrus_images%2Fe9fbe2381addac84fbd84beea9e6ce84&featuredImageUrl=https%3A%2F%2Fstorage.googleapis.com%2Fpapyrus_images%2F9fb2b6b8f8e4971310577da1b1191d47.png&size=512)