What happened?
Description
The elements/apply-draft action is culling the email param when trying to update a user.
Steps to reproduce
- Visit Users → + New user;
- Fill email (and username if
useEmailAsUsername is off);
- Press Save;
Expected behavior
Email is applied from the draft (or incoming params).
Actual behavior
Email is not stored on the draft (null in Ajax responses), and is stripped from POST data due to CraftCms\Cms\User\Elements\User::SENSITIVE_ATTRIBUTES.
Craft CMS version
6.0.0-alpha.2
PHP version
8.5.5
Operating system and version
DDEV
Database type and version
MySQL 8.0.40 (!?)
Image driver and version
No response
Installed plugins and versions
No response
What happened?
Description
The
elements/apply-draftaction is culling theemailparam when trying to update a user.Steps to reproduce
useEmailAsUsernameis off);Expected behavior
Email is applied from the draft (or incoming params).
Actual behavior
Email is not stored on the draft (
nullin Ajax responses), and is stripped from POST data due toCraftCms\Cms\User\Elements\User::SENSITIVE_ATTRIBUTES.Craft CMS version
6.0.0-alpha.2
PHP version
8.5.5
Operating system and version
DDEV
Database type and version
MySQL 8.0.40 (!?)
Image driver and version
No response
Installed plugins and versions
No response