mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Move keys to models/asymkey (#17917)
* Move keys to models/keys * Rename models/keys -> models/asymkey * change the missed package name * Fix package alias * Fix test * Fix docs * Fix test * Fix test * merge
This commit is contained in:
		| @@ -14,6 +14,7 @@ import ( | ||||
| 	"text/tabwriter" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	asymkey_model "code.gitea.io/gitea/models/asymkey" | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	"code.gitea.io/gitea/models/login" | ||||
| 	user_model "code.gitea.io/gitea/models/user" | ||||
| @@ -625,7 +626,7 @@ func runRegenerateKeys(_ *cli.Context) error { | ||||
| 	if err := initDB(ctx); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return models.RewriteAllPublicKeys() | ||||
| 	return asymkey_model.RewriteAllPublicKeys() | ||||
| } | ||||
|  | ||||
| func parseOAuth2Config(c *cli.Context) *oauth2.Source { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user