feat: support "Use Email as username" in org (#3002)

Signed-off-by: Grégoire Bélorgey <gregoire@jianda.fr>
This commit is contained in:
Grégoire
2024-06-22 10:52:11 +02:00
committed by GitHub
parent 793a7d6cda
commit cff0c7a273
27 changed files with 63 additions and 1 deletions

View File

@ -436,6 +436,16 @@ class OrganizationEditPage extends React.Component {
}} />
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 19 : 2}>
{Setting.getLabel(i18next.t("organization:Use Email as username"), i18next.t("organization:Use Email as username - Tooltip"))} :
</Col>
<Col span={1} >
<Switch checked={this.state.organization.useEmailAsUsername} onChange={checked => {
this.updateOrganizationField("useEmailAsUsername", checked);
}} />
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 22 : 2}>
{Setting.getLabel(i18next.t("organization:Account items"), i18next.t("organization:Account items - Tooltip"))} :