I have a little problem I use code which is given below to check in software that someone login with admin id I would just hide the password when entering how do I do?
Code:
verifAdmin int ()
(
char username [100];
char password [100];
puts ( "\ n Please enter your username");
FFL;
gets (username);
if (strcmp (identifier, "foo") == 0)
(
puts ( "\ n Please enter the password");
FFL;
gets (password);
if (strcmp (password, "bar") == 0)
(
CLS;
puts ( "\ n \ n \ n");
puts ( "\ n Welcome Administrator you will be redirected in 2 seconds");
sleep (2);
return 1;
)
else
(
puts ( "\ n sorry you are not administrator");
return 0;
)
)
else
(
puts ( "\ n sorry you are not administrator");
return 0;
)
)
the fact I'm in ubuntu and I define the CLS system ( "clear") to clear the screen.
Bookmarks