mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-20 15:03:50 +08:00
feat: Allow to sign up with Email without verification (#728)
* feat: Allow to sign up with Email without verification by rule * Update account.go * Update SignupTable.js * Update SignupPage.js Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
@ -159,7 +159,7 @@ class SignupTable extends React.Component {
|
||||
title: i18next.t("provider:rule"),
|
||||
dataIndex: 'rule',
|
||||
key: 'rule',
|
||||
width: '120px',
|
||||
width: '155px',
|
||||
render: (text, record, index) => {
|
||||
let options = [];
|
||||
if (record.name === "ID") {
|
||||
@ -167,12 +167,17 @@ class SignupTable extends React.Component {
|
||||
{id: 'Random', name: 'Random'},
|
||||
{id: 'Incremental', name: 'Incremental'},
|
||||
];
|
||||
} if (record.name === "Display name") {
|
||||
} else if (record.name === "Display name") {
|
||||
options = [
|
||||
{id: 'None', name: 'None'},
|
||||
{id: 'Real name', name: 'Real name'},
|
||||
{id: 'First, last', name: 'First, last'},
|
||||
];
|
||||
} else if (record.name === "Email") {
|
||||
options = [
|
||||
{id: 'Normal', name: 'Normal'},
|
||||
{id: 'No Verification', name: 'No verification'},
|
||||
];
|
||||
}
|
||||
|
||||
if (options.length === 0) {
|
||||
|
Reference in New Issue
Block a user