mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 16:43:50 +08:00
feat: add support for per-account MFA validity period in org setting to reduce repeated prompts (#3917)
This commit is contained in:
@ -25,6 +25,7 @@ import PopconfirmModal from "./common/modal/PopconfirmModal";
|
||||
class OrganizationListPage extends BaseListPage {
|
||||
newOrganization() {
|
||||
const randomName = Setting.getRandomName();
|
||||
const DefaultMfaRememberInHours = 12;
|
||||
return {
|
||||
owner: "admin", // this.props.account.organizationname,
|
||||
name: `organization_${randomName}`,
|
||||
@ -48,6 +49,7 @@ class OrganizationListPage extends BaseListPage {
|
||||
enableSoftDeletion: false,
|
||||
isProfilePublic: true,
|
||||
enableTour: true,
|
||||
mfaRememberInHours: DefaultMfaRememberInHours,
|
||||
accountItems: [
|
||||
{name: "Organization", visible: true, viewRule: "Public", modifyRule: "Admin"},
|
||||
{name: "ID", visible: true, viewRule: "Public", modifyRule: "Immutable"},
|
||||
|
Reference in New Issue
Block a user