0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-30 22:34:01 -05:00

Made name field optional in Portal account settings (#21900)

ref DES-898

- previously, the name field in Portal account settings used to be required which caused an issue users were not able to update their email address without adding name first
- now the name field is optional makes it possible to update the email address without adding name, or remove their name as well
- it was intended not to wire this up to "Display name in signup form" setting in Portal for the simplicity
This commit is contained in:
Sodbileg Gansukh 2024-12-17 18:15:16 +08:00 committed by GitHub
parent 4bc85e2ff2
commit 4ec0bdde3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ export default class AccountProfilePage extends React.Component {
placeholder: t('Jamie Larson'),
label: t('Name'),
name: 'name',
required: true,
required: false,
errorMessage: errors.name || ''
},
{