Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login() {
- let credential1 = document.getElementById('cred1');
- let credential2 = document.getElementById('cred2');
- axios.post('/users/login', {username: credential1.value, password: credential2.value}).then((result) => {
- window.location.pathname = '/dashboard';
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement