answersLogoWhite

0

For a username, just get the username from the standard input using scanf and check whether this username matches with the username stored. If it doesn't match, then the username is wrong.

For a password, get each character using getch(). Print a * for each character obtained. Now check this password with the stored password. If these don't match, then the password is wrong.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Write a Java program to accept name and password?

String username=jTextField1.getText(); char[] pw=jPasswordField1.getPassword(); if ((username.equals("muja"))&& (check(pw))) { JOptionPane.showMessageDialog(null, "Username and Password is Correct","User Login",JOptionPane.INFORMATION_MESSAGE); } else if ((username.equals(""))&& (check(pw))) { JOptionPane.showMessageDialog(null, "Enter the UserName","User Login",JOptionPane.WARNING_MESSAGE); } else { JOptionPane.showMessageDialog(null, "Username and Password Wrong","User Login",JOptionPane.ERROR_MESSAGE); } }


How do you login from one website to another website with same login Information it UserName and Password?

I don't register i do not have time for it now soon passably I type each time Tika if i do not forgot it or if i want to change the name another but i let it show in this thing before the message (This is no spam) Tika ________________________________________________________________________ You cannot do that. Why not and how can i do anything that is not precise but not bad? But if you have a new enough browser you can save your username and password on a site that if you type 1 or more letters or numbers of your username you see your username in a box click on it and you the browser enters your username and password. Do it on both sites because you view on the site where you don't saved it still the username and you can click on it but there is no password viewed. How do i save it? If you enter your username and password on a site log in and you view a box that ask if you want to save your username and password. Select yes. Do it with both sites with the same password and username. This is not precise but it can too. Not correct? If this is not good for what you want to do i don't know anything else sorry. ______________________________________________________________________


How to Get value from one HTML page in to another HTML page?

I think you'd have to use a form with PHP or ASP or JS or something along those lines.For example, to create a login page in PHP/HTML you need 2 pages.One to get the user input and one to make use of it (validate username and password).PAGE 1:LOGIN.HTMLname: password: PAGE 2:WELCOME.PHP


How do you disable Windows XP login prompt?

# Press Win_Key+R to open Run dialog box # Type "control userpasswords2" (without quotes) # User Accounts dialog box get open. Now in Users tab, uncheck "Users must enter a username and password......". # Press OK # Give the username and password to want to logon automatically. # To check try logging off and re-login .Thanks,Kiran


You want code for way2sms login page in java?

please login to my password and login id

Related Questions

How do you login in in echo elektro?

Open up the program and login with your username and password


How do you login to sploder?

You login by entering your username and password.


How do you make a moparscape account?

All you do is login with what ever username or password you want and that is your username and password.


What is the login for mathlol?

Username: beta Password: beta


How do you recover the username and password from spore?

Got to the web site (link below) and then click login, forgot password/username!!


How do you login to purple mash?

type your password and username in and log in


What do you need for your Commonwealth Bank account login?

Your Commonwealth Bank account login requires your username and password. If you forget either of these, you can use their username and password retrieval services to find your missing information.


How do you login to Kung Fu panda world?

put your username password


What does Runescape login mean?

It means the same as "login" in other contexts: to identify yourself by a username and password.


How do you login theslapcom?

If you know where the REGISTER thing is then just to the right of it is the Login button. Click that and then type in your username and password.


How do you restart your Instagram account?

Open up the Instagram program. In the login page click forgot password. Next click find password by username/email. Type in your username and search. Request password reset be sent to your email. Open your email and follow the steps to reset your account.


Why I cannot login to WikiAnswers?

You probably forgot your username/password, and typed it in wrong.