Author Topic: Check user's password reliability  (Read 4133 times)

0 Members and 1 Guest are viewing this topic.

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
Check user's password reliability
« on: 02 July, 2006, 11:55:55 »
Code: [Select]
--// 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
//NL

PtokaX forum

Check user's password reliability
« on: 02 July, 2006, 11:55:55 »

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Check user's password reliability
« Reply #1 on: 02 July, 2006, 12:42:54 »
Oh my! He actually done something...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline 6Marilyn6Manson6

  • Scripter
  • King
  • ******
  • Posts: 869
  • Karma: +47/-35
    • http://www.marilynmanson986.altervista.org
Re: Check user's password reliability
« Reply #2 on: 02 July, 2006, 13:54:04 »
Code: [Select]
--// 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

Offline -RICK-

  • Member
  • ***
  • Posts: 40
  • Karma: +5/-0
Re: Check user's password reliability
« Reply #3 on: 02 July, 2006, 14:17:24 »
ure always bored :))))))

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
Re: Check user's password reliability
« Reply #4 on: 03 July, 2006, 10:09:43 »
ure always bored :))))))


Well ddddoooooooeeeeeeeeee.....  :P

I have missed this place some actually... I can allready sense the love, wahahahahaa...  ;D
//NL

PtokaX forum

Re: Check user's password reliability
« Reply #4 on: 03 July, 2006, 10:09:43 »