Guest User

Untitled

a guest
Jun 7th, 2018
1,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. function loginHandler(username, password)
  2. local account = getAccount ( username, password )
  3.     local accountCheck = exports.sql:query_assoc_single( "SELECT * FROM accounts WHERE username = '" .. username .. "' AND password=MD5('" .. password .. "')" )
  4.     if not accountCheck then
  5.         triggerClientEvent (source, "wrongLogin", root)    
  6.     else
  7.     if (logIn(client, getAccount(username), password)) then
  8.     spawn(source)
  9.         end
  10.     end
  11. end
Add Comment
Please, Sign In to add comment