Skip to content

Commit

Permalink
Enable UpperCase Password
Browse files Browse the repository at this point in the history
  • Loading branch information
dsh0416 committed Apr 9, 2015
1 parent 94c0d48 commit f0ef1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion host/invite/reg.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,15 @@ function SendReg(){
var username = regform.reg_user;
var password = regform.reg_pass;
var usern = /^[a-z0-9]{1,}$/;
var passn = /^[a-zA-Z0-9]{1,}$/;
if (!username.value.match(usern)) {
msg += "用户名只能由字母数字组成\n";
alert(msg);
username.value = '';
username.focus();
return false;
}
if (!password.value.match(usern)) {
if (!password.value.match(passn)) {
msg += "密码只能由字母数字组成\n";
alert(msg);
username.value = '';
Expand Down

0 comments on commit f0ef1b7

Please sign in to comment.