Open rabol opened 1 week ago
The error is telling you the name of the protection scheme you tried to use, so doing a search in the relevant places should get you there.
I'll move to this to a feature request as there could be a more helpful way to narrow down exactly where to find it.
Bug description
Un installing ALT-Password-Protect add-on, will leave a line in the collection like this:
That will then result in a 403 when you try to access your site.
I do undertsand that the the 'error' is caused by a 3rd party add-on, however the handling in Statamic could be better
e.g. a better error messages with information on what/where the protection setup was found
A better validation of the collection yaml would also be helpful to ensure that values in the collection yaml is valid.
e.g. the value
none
is not valid as it is not defined in the config -statamic.protect.schemes
Even if you uninstall the add-on, you will still have the 'Alt password protect' tab when creating or modifying entries in the collection.
How to reproduce
Install the ALT- Password Protect add-on, create a new collection un-install the add-on
Logs
No response
Environment
Installation
Starter Kit using via CLI
Additional details
No response