setting, session and profile
This commit is contained in:
parent
4a563f4f34
commit
7d3b6d4e31
3 changed files with 5 additions and 15 deletions
|
|
@ -53,16 +53,6 @@ def mfa_phone_parts(account: Account) -> tuple[str, str]:
|
||||||
) from error
|
) from error
|
||||||
|
|
||||||
|
|
||||||
def assert_mfa_phone(account: Account) -> None:
|
|
||||||
try:
|
|
||||||
parse_india_phone(account.phone_number)
|
|
||||||
except ValueError as error:
|
|
||||||
raise HTTPException(
|
|
||||||
status_code=status.HTTP_400_BAD_REQUEST,
|
|
||||||
detail=str(error),
|
|
||||||
) from error
|
|
||||||
|
|
||||||
|
|
||||||
async def create_login_challenge(
|
async def create_login_challenge(
|
||||||
database,
|
database,
|
||||||
account: Account,
|
account: Account,
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,8 @@ export default function CompanySecurity() {
|
||||||
<h2>Session timeout</h2>
|
<h2>Session timeout</h2>
|
||||||
<div className="security-setting-row">
|
<div className="security-setting-row">
|
||||||
<div>
|
<div>
|
||||||
<strong>Automatically sign out inactive users</strong>
|
<strong>Maximum session length</strong>
|
||||||
<p>Users are signed out after a period of inactivity.</p>
|
<p>Organization members cannot stay signed in longer than this, even if they choose a longer personal setting.</p>
|
||||||
</div>
|
</div>
|
||||||
<select
|
<select
|
||||||
className="security-timeout-select"
|
className="security-timeout-select"
|
||||||
|
|
|
||||||
|
|
@ -500,7 +500,7 @@ export default function DashboardPage() {
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<main className="dashboard-content">
|
<main className="dashboard-content">
|
||||||
{companyActive && !["Overview", "Domains", "People", "Groups", "Aliases", "Security", "Administrators"].includes(companyActive) && (
|
{companyActive && !["Overview", "Domains", "People", "Groups", "Aliases", "Security", "Administrators", "Settings"].includes(companyActive) && (
|
||||||
<div className="dashboard-content-heading">
|
<div className="dashboard-content-heading">
|
||||||
<div><p>{workspaceTitle}</p><h1>{companyActive}</h1></div>
|
<div><p>{workspaceTitle}</p><h1>{companyActive}</h1></div>
|
||||||
<span className="dashboard-account-pill">{workspaceLabel}</span>
|
<span className="dashboard-account-pill">{workspaceLabel}</span>
|
||||||
|
|
@ -599,14 +599,14 @@ export default function DashboardPage() {
|
||||||
{companyActive === "Administrators" && isDomainOwner && (
|
{companyActive === "Administrators" && isDomainOwner && (
|
||||||
<CompanyAdministrators account={account} />
|
<CompanyAdministrators account={account} />
|
||||||
)}
|
)}
|
||||||
{companyActive && !["Overview", "Domains", "People", "Groups", "Aliases", "Security", "Administrators"].includes(companyActive) && (
|
{companyActive && !["Overview", "Domains", "People", "Groups", "Aliases", "Security", "Administrators", "Settings"].includes(companyActive) && (
|
||||||
<section className="dashboard-empty dashboard-company-view">
|
<section className="dashboard-empty dashboard-company-view">
|
||||||
<span><Sparkles size={24} /></span>
|
<span><Sparkles size={24} /></span>
|
||||||
<h2>{companyActive}</h2>
|
<h2>{companyActive}</h2>
|
||||||
<p>Company {companyActive.toLowerCase()} controls will appear here.</p>
|
<p>Company {companyActive.toLowerCase()} controls will appear here.</p>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
{!companyActive && active === "Settings" && (
|
{(active === "Settings" || companyActive === "Settings") && (
|
||||||
<AccountSettings />
|
<AccountSettings />
|
||||||
)}
|
)}
|
||||||
{!companyActive && !["Inbox", "Outbox", "Trash", "Settings"].includes(active) && (
|
{!companyActive && !["Inbox", "Outbox", "Trash", "Settings"].includes(active) && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue