I have a website where users can register with their details after verifying their email address.
These users do not have panel access. Is there any way I can allow them to change their password?
I have a website where users can register with their details after verifying their email address.
These users do not have panel access. Is there any way I can allow them to change their password?
You can create a page in the site frontend with a form that calls the $kirby->user()->changePassword($newPassword)
method.
Thank you, that worked a treat.
Also trying to allow pre-registered users to update their password from the frontend, but could not find a recipe or even the method in the docs. Thanks a lot for some pointers where to look / which steps are needed to use the built-in Kirby function.
We don’t have a ready-to-use recipe for changing a password from the site frontend, however you can use the user registration recipe as a template and adapt it to call the changePassword()
method.
The method is documented in the reference: $user->changePassword() | Kirby CMS
… years later – thank you, solved!