mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-11-04 12:28:12 +00:00 
			
		
		
		
	When registering, consider a 200 final response code as an account that already exists. Fixes #1242
This commit is contained in:
		
							parent
							
								
									7128d79935
								
							
						
					
					
						commit
						7df20e5049
					
				
							
								
								
									
										2
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								acme.sh
									
									
									
									
									
								
							@ -3170,7 +3170,7 @@ _regAccount() {
 | 
			
		||||
  if [ "$code" = "" ] || [ "$code" = '201' ]; then
 | 
			
		||||
    echo "$response" >"$ACCOUNT_JSON_PATH"
 | 
			
		||||
    _info "Registered"
 | 
			
		||||
  elif [ "$code" = '409' ]; then
 | 
			
		||||
  elif [ "$code" = '409' ] || [ "$code" = '200' ]; then
 | 
			
		||||
    _info "Already registered"
 | 
			
		||||
  else
 | 
			
		||||
    _err "Register account Error: $response"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user