| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -95,7 +95,7 @@ namespace Shentun.WebPeis.Users | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        [HttpPost("api/app/Users/UpdatePassWord")] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        public async Task UpdatePassWordAsync(UpdatePassWordDto input) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					   | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var user = await _userManager.FindByIdAsync(_currentUser.Id.ToString()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (user != null) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -110,7 +110,7 @@ namespace Shentun.WebPeis.Users | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                await _userManager.AddPasswordAsync(user, input.NewPassWord); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -204,11 +204,13 @@ namespace Shentun.WebPeis.Users | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        protected virtual async Task<TokenResponse> RequestAuthServerLoginByPasswordAsync(HttpClient client, string username, string password) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var AdminUrl = _configuration.GetSection("Kestrel") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  .GetSection("Endpoints").GetSection("Http") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  .GetSection("Url").Value; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var request = new PasswordTokenRequest | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Address = _configuration["AuthServer:Authority"] + "/connect/token", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Address = AdminUrl + "/connect/token", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //GrantType = "password",
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //UserName = username,
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //Password = password,
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -216,12 +218,12 @@ namespace Shentun.WebPeis.Users | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //ClientId = "Peis_App",
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Parameters = | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    {"username",username}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    {"password",password }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    {"scope","WebPeis offline_access" }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    {"client_id","WebPeis_App" }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    {"grant_type","password" } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                { "username",username}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    { "password",password }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    { "scope","WebPeis offline_access" }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    { "client_id","WebPeis_App" }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    { "grant_type","password" } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //request.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |