Is it possible to require a correct password before a button will work?

Currently, we are not able to customize the password window for password protected pages. (Though there is a feature request for it here .) So I’m stuck with a very drab password window and very unfitting “Guest Area” title.

So as a workaround, I’d like to set up a lightbox that asks for the password. If the user types in the correct password, the button to the protected page become available. Perhaps I could use some sort of if-then statement like, “if field = correctpasswordhere, then button = valid.”

Is this sort of thing, or something like it, possible?

I am very new to code, but any code or non-code help is very appreciated! Thanks guys!

You can do it using light box, but make sure ONLY return important data on success only. validate password on backend

It takes your time but worth to do if you want a custom experience

P.S. you can return data immediately when backend checked the password and it is correct.

Thanks so much for your quick reply!

I’ve never set up anything to “return” data, or any of the other words you used. :slight_smile: Could you point me in the right direction for each of the components you’ve mentioned - either what I should google, or if there is a tutorial somewhere perhaps?

@certified-code
Do i have some security risk when doing it from normal page?
So this is why i am using a lightbox?
Because of security reason?

If there is no security difference, i would suggest not to use a lightbox for beginner, instead doing it directly on the page.
But i already assume, that it will have security-risks → doing it (placing an input-field for password-queries) on normal page, right?