Yields Posted May 21, 2012 Share Posted May 21, 2012 Okay so I'm working on a MySQL Login / Register once I added a account thru the phpmyadmin such as account password how would it make sure that the password is the same one that was typed in as the made one in phpmyadmin? Link to comment
Castillo Posted May 21, 2012 Share Posted May 21, 2012 Query the account and get the password field data and compare them? Link to comment
kaos057 Posted May 23, 2012 Share Posted May 23, 2012 So what you are saying is that you want to create the username/password in mysql and then have a login that checks that data rather than the built in login functions of MTA? It sounds to me like you dont know the first thing about sql databases so I would highly suggest just using a simple login GUI to use the login/register commands. If you really must use MySQL for this you will want to make sure the password is encrypted when it is stored in the database and you will also need to encrypt the password with the same hash when it is submitted for comparison. Link to comment
myonlake Posted May 23, 2012 Share Posted May 23, 2012 It's really simple - just do as what Solidsnake told you and that's it. Same like: if old_password == new_password then Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now