소스 검색

修改bug

yjp 1 년 전
부모
커밋
c14e6bade4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      convenient/domain/auth/user/api.go

+ 2 - 2
convenient/domain/auth/user/api.go

@@ -203,7 +203,7 @@ func (simple *Simple) Bind(binder *binding.Binder) {
 						return false, errors.New(err.Error())
 					}
 
-					conditions.Equal(ColumnPassword, encryptedPassword)
+					conditions.Equal(ColumnPhone, encryptedPassword)
 				}
 
 				return true, nil
@@ -219,7 +219,7 @@ func (simple *Simple) Bind(binder *binding.Binder) {
 						return false, errors.New(err.Error())
 					}
 
-					conditions.Equal(ColumnPassword, encryptedPassword)
+					conditions.Equal(ColumnEmail, encryptedPassword)
 				}
 
 				return true, nil