--// Check user's password reliability
--// By: NightLitch 2006-07-02
CheckUserPassword = function(password)
if string.len(password) >= 6 then
local lower,upper,number = nil
if string.find(password, "%l") then lower = 1 end
if string.find(password, "%u") then upper = 1 end
if string.find(password, "%d") then number = 1 end
if lower and upper and number then
return 1
end
end
return nil,"Password need to have uppercase/lowercase letters and numbers and be more then 6 characters long"
end
Got bored so, created something.
I don't know if this is of any use for anyone...
Cheerz / NL
Oh my! He actually done something...
Quote from: NightLitch on 02 July, 2006, 11:55:55
--// Check user's password reliability
--// By: NightLitch 2006-07-02
CheckUserPassword = function(password)
if string.len(password) >= 6 then
local lower,upper,number = nil
if string.find(password, "%l") then lower = 1 end
if string.find(password, "%u") then upper = 1 end
if string.find(password, "%d") then number = 1 end
if lower and upper and number then
return 1
end
end
return nil,"Password need to have uppercase/lowercase letters and numbers and be more then 6 characters long"
end
Got bored so, created something.
I don't know if this is of any use for anyone...
Cheerz / NL
Hello NightLitch :D
ure always bored :))))))
Quote from: -RICK- on 02 July, 2006, 14:17:24
ure always bored :))))))
Well ddddoooooooeeeeeeeeee..... :P
I have missed this place some actually... I can allready sense the love, wahahahahaa... ;D