Skip to content

Commit

Permalink
rota cadastro
Browse files Browse the repository at this point in the history
  • Loading branch information
Nailan-Nobre committed Jan 15, 2025
1 parent 38c128c commit 1e2037c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ async function adicionarUsuario() {
const user = await resposta.json();
localStorage.setItem('name', user.name)
localStorage.setItem('email', user.email)
window.location.href = '/principal.html'
window.location.href = 'https://nailan-nobre.github.io/pretty-nails-mobile-prototipo/www/'
} else {
console.log('Erro ao realizar cadastro!!')
console.error('Erro no cadastro:', error);
alert('Erro ao realizar cadastro. Tente novamente mais tarde.');
}
}

0 comments on commit 1e2037c

Please sign in to comment.