Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:用户 wan 更改密码,但输入与现有密码相同的密码。
如何避免用户再次输入相同的信息?
任何人都可以提供示例代码吗?请帮忙。
检查使用这样的东西:
if( $oldPassword == $newPassword ) { // do something (like echo "same password can't be used again"; ) } else { // change password in the database }