PHP front-end code can be used to obtain user passwords, for example, user logon -- & gt; on the personal homepage, when you enter the personal homepage, verify that all the user passwords you have logged on to are in numbers or are in full English. & nbsp; go to the personal homepage & nbsp; the pop-up content of the prompt: The system detects that your account password is too simple and has serious security risks. we recommend that you modify it in time & nbsp ;, PHP front-end code to obtain user passwords
For example, you can log on to the --> personal homepage.
When you enter the personal homepage, verify that all or all of the logon user passwords are in English.
Personal homepage prompt
The pop-up layer content:
The system detects that your account password is too simple and has serious security risks. we recommend that you modify the password in time to avoid unnecessary troubles and losses such as accidental deletion of recordings.
Two buttons <修改> <以后再说>
Can jquery or PHP be implemented in some way? Share To: go to the personal homepage. when you enter the personal homepage, verify that all the user passwords you have logged on to are in numbers or full English? Go to my homepage? The pop-up prompt shows the layer content: the system detects that your account password is too simple and there are serious problems... 'data-pics = ''>
------ Solution --------------------
Ajax can be used for implementation. in document. ready, you can upload the user to the background for query, and then upload the user back for judgment.
------ Solution --------------------
Reference:
Since you have verified the logon, of course, you have obtained the user-entered password before verification. so you can use this password to match the rule "is too simple". if it is too simple prompt.
Every time I see you, it's like shining your clothes .....
------ Solution --------------------
If you want to use the regular expression to match your requirements, you can write them separately.
$ Password = "assssssss ";
$ Num = 0;
If (preg_match ("/[A-Z]/", $ Password )){
$ Num ++;
}
If (preg_match ("/[0-9]/", $ Password )){
$ Num ++;
}
If (preg_match ("/[a-z]/", $ Password )){
$ Num ++;
}
If (preg_match ("/[^ A-Za-z0-9]/", $ Password )){
$ Num ++;
}
If ($ num> = 2 & strlen ($ Password)> = 6 & strlen ($ Password) <= 16 ){
//
} Else {
// Prompt code
}
In addition, I think the title of the landlord requires front-end code, but you need to describe it as prompted after logging on, so it is best to use PHP to prompt