WordPress:WPMU Functions/wpmu validate user signup

来自站长百科
Xxf3325讨论 | 贡献2008年9月27日 (六) 10:55的版本 (新页面: Make some verifications about Username and Email.<br /> '''''Localize : '''''''wp-includes\wpmu-functions.php'' ===Username validation=== *If not empty *If not illegal names like :<br /><...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Make some verifications about Username and Email.
Localize : ''wp-includes\wpmu-functions.php

Username validation[ ]

  • If not empty
  • If not illegal names like :
    "www", "web", "root", "admin", "main", "invite", "administrator"
  • Number of letters, at least 4 characters
  • If is not contain "underscore", the _ character
  • If is not only contain number
  • If the username already exists in DB

Email validation[ ]

  • If not listed like bad/unsafe email adress
  • If is a valid email : x@x.xx
  • If is the validation done
  • If the email already exists in DB