mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-08 17:12:25 +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 ? (
|
||||
<AccountDeletedPage />
|
||||
<Switch>
|
||||
<Route path="/" exact component={AccountDeletedPage} />
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
) : (
|
||||
<Switch>
|
||||
<Route path="/profile/mfa/step:step([1-3])" component={MultiFactorAuthPage} />
|
||||
|
Loading…
Reference in New Issue
Block a user