mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	login modify
This commit is contained in:
		
							parent
							
								
									7fcc8e86ba
								
							
						
					
					
						commit
						10a6f951eb
					
				@ -43,7 +43,7 @@ func Login(c *gin.Context) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	if r.Password != params.Password {
 | 
						if r.Password != params.Password {
 | 
				
			||||||
		log.NewError(params.OperationID, "password err", params.Password, account, r.Password, r.Account)
 | 
							log.NewError(params.OperationID, "password err", params.Password, account, r.Password, r.Account)
 | 
				
			||||||
		c.JSON(http.StatusOK, gin.H{"errCode": constant.PasswordErr, "errMsg": "Mobile phone number is not registered"})
 | 
							c.JSON(http.StatusOK, gin.H{"errCode": constant.PasswordErr, "errMsg": "password err"})
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	url := fmt.Sprintf("http://%s:10000/auth/user_token", utils.ServerIP)
 | 
						url := fmt.Sprintf("http://%s:10000/auth/user_token", utils.ServerIP)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user