PtokaX forum

Archive => Archived 5.1 boards => HOW-TO's => Topic started by: NightLitch on 02 July, 2006, 11:55:55

Title: Check user's password reliability
Post by: 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
Title: Re: Check user's password reliability
Post by: Madman on 02 July, 2006, 12:42:54
Oh my! He actually done something...
Title: Re: Check user's password reliability
Post by: 6Marilyn6Manson6 on 02 July, 2006, 13:54:04
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
Title: Re: Check user's password reliability
Post by: -RICK- on 02 July, 2006, 14:17:24
ure always bored :))))))
Title: Re: Check user's password reliability
Post by: NightLitch on 03 July, 2006, 10:09:43
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