forbidding going back for registr and login
This commit is contained in:
parent
e6e2f68eb0
commit
4d96cbaab1
5 changed files with 23 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ const LoginForm = () => {
|
|||
else {
|
||||
const responseData = await authUser({email, password});
|
||||
if (responseData && !responseData.error)
|
||||
navigate('/my-surveys');
|
||||
navigate('/my-surveys', {replace: true});
|
||||
else
|
||||
setError('Неверный логин или пароль')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue