Logic Machine Forum
Create users in backup database - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: Create users in backup database (/showthread.php?tid=1154)



Create users in backup database - Mackiovello - 28.12.2017

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.?


RE: Create users in backup database - admin - 29.12.2017

Plain text passwords are automatically hashed during start-up, so you don't need to do hashing yourself.


RE: Create users in backup database - Mackiovello - 30.12.2017

That's helpful, thank you!