[Question] authentication system on lua scripts

hey guys

i am developing a simple scripts in lua for using in a game as an addon , i want to add authentication system for using this addon ingame , i want players to login for using this and it should have a frame for username and password and it will check the key from a database and if that was true then rest of lua will work and if not script will not run ingame 

appreciated if someone helps me to do this

thanks so much 

Hi,

Do you already have the backend code and database running somewhere?

-dev

no i didnt , how can i do that ,would you please explain me more about backend code in lua , i know a little about creating a data base , or it can be a text file with some user:password or some sopecific key for each user 

Hi,

Do you already have the backend code and database running somewhere?

-dev

no i didnt , how can i do that ,would you please explain me more about backend code in lua , i know a little about creating a data base , or it can be a text file with some user:password or some sopecific key for each user