Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) {
- var username = prompt("Type what you want your username to be");
- var password = prompt("Type what you want your password to be");
- var userConfirm = confirm("Do you want your username to be: " + username);
- var passConfirm = confirm("Do you want your password to be: " + password);
- if (passConfirm === true) {
- break;
- }
- if (passConfirm === false) {
- continue;
- }
- if (userConfirm === true) {
- break;
- }
- if (userConfirm === false) {
- continue;
- }
- }
- while (true) {
- var userLogin = prompt("Username:");
- var passLogin = prompt("Password:");
- if (userLogin === username) {
- if (passLogin === password) {
- alert("Succesfully signed in :D");
- break;
- }else if (passLogin !== password) {
- alert("Your password is incorrect");
- continue;
- }
- }else if (userLogin !== username){
- alert("Your usernname is incorrect");
- continue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement