[後端] 修改前台登入時流程
This commit is contained in:
		
							parent
							
								
									af7d66e5ee
								
							
						
					
					
						commit
						47f29cdddf
					
				@ -58,8 +58,8 @@ namespace FrontendWebApi.ApiControllers
 | 
				
			|||||||
                ControllerContext.HttpContext.Response.Headers.Add("Access-Control-Allow-Origin", "*");
 | 
					                ControllerContext.HttpContext.Response.Headers.Add("Access-Control-Allow-Origin", "*");
 | 
				
			||||||
                EDFunction eDFunction = new EDFunction();
 | 
					                EDFunction eDFunction = new EDFunction();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                string SHA256Pwd = eDFunction.GetSHA256Encryption(login.password);
 | 
					                //string SHA256Pwd = eDFunction.GetSHA256Encryption(login.password);
 | 
				
			||||||
                var User = await backendRepository.GetOneAsync<User>("userinfo", @$"account = '{login.account}' and password = '{SHA256Pwd}' and deleted = 0");
 | 
					                var User = await backendRepository.GetOneAsync<User>("userinfo", @$"account = '{login.account}' and deleted = 0");
 | 
				
			||||||
                if (User == null)
 | 
					                if (User == null)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    apiResult.Code = "9998";
 | 
					                    apiResult.Code = "9998";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user