mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	fix: do not rewrite when there are no keys
This commit is contained in:
		
					parent
					
						
							
								47fd9a421f
							
						
					
				
			
			
				commit
				
					
						a87e0d0e46
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -169,6 +169,10 @@ func updateSSHKeys( | |||
| 			return err | ||||
| 		} | ||||
| 
 | ||||
| 		if len(sshKeys) == 0 { | ||||
| 			return nil | ||||
| 		} | ||||
| 
 | ||||
| 		if asymkey_model.SynchronizePublicKeys(ctx, user, source.authSource, sshKeys) { | ||||
| 			err = asymkey_model.RewriteAllPublicKeys(ctx) | ||||
| 			if err != nil { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue