Skip to content

Commit

Permalink
Alterando rota e mensagem quando cadastrado um novo usuário.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoborgesmachado committed Oct 7, 2024
1 parent e4ebfbb commit 2dd5aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/CriarUsuario/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function CriarUsuario(){
)
.then((response) => {
if(response.data.success){
toast.success('Usuário criado com sucesso!');
navigate('/confirmesuaconta/' + email, {replace: true});
toast.success('Usuário criado com sucesso! Login liberado!');
navigate('/login', {replace: true});
}
else{
toast.info('Já existe um usuário com esse email!');
Expand Down

0 comments on commit 2dd5aca

Please sign in to comment.