Skip to content

Commit c71d944

Browse files
authored
Fixed bug of issue #9
1 parent a2c684e commit c71d944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/tmall/controller/front/UserFrontController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public String register(){
2020
@RequestMapping("registerAdd")
2121
public String registerAdd(String name ,String password , Model model) throws Exception {
2222
String msg = null;
23-
if(!HtmlUtils.htmlEscape(name).equals(password)){
23+
if(!HtmlUtils.htmlEscape(name).equals(name)){
2424
msg = "用户名含有特殊字符,无法注册,请重新输入";
2525
}
2626
if(userService.isExist(name)){

0 commit comments

Comments
 (0)