0

this stuff is giving me build error, where am i supposed to slap it ( what platform in visual studio) pls

0

one thing i am not clear. let say everything is ok and a user successfull to login. From above code we get it in this part.

if (string.Compare(dbPassword, appPassword) == 0)
{
//Logged in
}

my question is what we do with the login form unload and load the main form?

if (string.Compare(dbPassword, appPassword) == 0)
{
//Logged in
this.hide();
mainForm.show();
}

how we manage the login form and mainform and there exit sequence?

Edited by Hasan_3

0

FYI, when talking about secure logins, providing any information on the validity of either the userID or the password is a complete no-no. Instead of just passing the userID, pass both the userID and the encrypted password to the connection making sure both are part of the where clause.
It's beyond the scope of this routine, but it is a good practice to just allow the general user execute access to stored procedures, so this should call a procedure that returns the logon information information you want to retrieve.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.