Minor punctuation change in halyde/kernel/modules/user.lua
This commit is contained in:
@@ -27,14 +27,14 @@ function module.init()
|
|||||||
local userRegistry = json.decode(data)
|
local userRegistry = json.decode(data)
|
||||||
|
|
||||||
if not userRegistry[userId] then
|
if not userRegistry[userId] then
|
||||||
return false, "No such UID"
|
return false, "No such UID."
|
||||||
end
|
end
|
||||||
|
|
||||||
local salt = md5.sumhexa(userRegistry[userId].name) -- A little bit of salt and pepper
|
local salt = md5.sumhexa(userRegistry[userId].name) -- A little bit of salt and pepper
|
||||||
local passwordHash = md5.sumhexa(userPassword .. salt)
|
local passwordHash = md5.sumhexa(userPassword .. salt)
|
||||||
if passwordHash ~= userRegistry[userId].hash then
|
if passwordHash ~= userRegistry[userId].hash then
|
||||||
wait(3) -- Something to hopefully shove away brute forcers
|
wait(3) -- Something to hopefully shove away brute forcers
|
||||||
return false, "Password incorrect"
|
return false, "Password incorrect."
|
||||||
end
|
end
|
||||||
|
|
||||||
local task = coroutine.create(func)
|
local task = coroutine.create(func)
|
||||||
|
|||||||
Reference in New Issue
Block a user