Custom password protected page

If it’s the same passwords for everyone, why wouldn’t you use the Password settings in the Page settings setup, without any code?