Jump to content

Roleplay GM dev


Nich

Recommended Posts

Does MTA use any password encryption or something? I looked at accounts.xml and the password that I entered before was hashed if I remember correctly. If it does I'll have to modify my UCP's registration system.

If it does, then what encryption? MD5?

Link to comment
Does MTA use any password encryption or something? I looked at accounts.xml and the password that I entered before was hashed if I remember correctly. If it does I'll have to modify my UCP's registration system.

If it does, then what encryption? MD5?

I think it's MD5. MD5 hashing is exposed as a lua function, by the way. But you can also just make your login/registration system wrap around MTA's, in fact that would be better. Take a look at the addAccount and logIn functions.

Link to comment
You don't actually need a database at all - MTA stores and reads accounts from accounts.xml, you don't need to bother with any SQL for the accounts themselves.

I have a UCP which I'm planning to use with my gamemode, that's why I wan't/need to use MySql

I don't need a registration function, only the login function.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...