This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create users in backup database
#1
I'm building an application that's interacting with a database that's backed up. In this application, I need to create a new user. The issue I have is how to create the password since the password is hashed (as it should be). I understand that you can't give away what hashing function and salt that you use for security reasons. 

Is there any way for me to create users in the database and then reload the database into the application?

To clarify, this is what I want to do:

1. Backup the database locally
2. Create a new user in the database
3. Reload the database into the application

It might be that I'm doing this wrong and that it would be better to use a Lua script in the Logic Machine. If so, how would I do to create a Lua script that runs on-demand and is able to create new visobjects, floors etc.?
Reply
#2
Plain text passwords are automatically hashed during start-up, so you don't need to do hashing yourself.
Reply
#3
That's helpful, thank you!
Reply


Forum Jump: