payloadcms / public-demo

The official public demo for Payload
https://demo.payloadcms.com
152 stars 74 forks source link

feat: prevent admin user updating email #31

Closed DanRibbens closed 11 months ago

DanRibbens commented 11 months ago

Updating the admin email was still possible in the sanitize hook when changing the email without sending a new password. Now the password change is prevented in the hook and email is handled seperately in the validation logic.