mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-23 13:39:54 +05:30
Prevent using any profile url when account is deleted
This commit is contained in:
parent
dd506b894c
commit
8ee2323bfa
@ -46,7 +46,10 @@ const ProfileController: ComponentType<Props> = ({ user, onSubmit, refreshUserDa
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{user.isDeleted ? (
|
{user.isDeleted ? (
|
||||||
<AccountDeletedPage />
|
<Switch>
|
||||||
|
<Route path="/" exact component={AccountDeletedPage} />
|
||||||
|
<Redirect to="/" />
|
||||||
|
</Switch>
|
||||||
) : (
|
) : (
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/profile/mfa/step:step([1-3])" component={MultiFactorAuthPage} />
|
<Route path="/profile/mfa/step:step([1-3])" component={MultiFactorAuthPage} />
|
||||||
|
Loading…
Reference in New Issue
Block a user