mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Validate OAuth Redirect URIs (#32643)
This fixes a TODO in the code to validate the RedirectURIs when adding or editing an OAuth application in user settings. This also includes a refactor of the user settings tests to only create the DB once per top-level test to avoid reloading fixtures.
This commit is contained in:
		| @@ -27,6 +27,7 @@ type ( | ||||
| 	TestForm struct { | ||||
| 		BranchName   string `form:"BranchName" binding:"GitRefName"` | ||||
| 		URL          string `form:"ValidUrl" binding:"ValidUrl"` | ||||
| 		URLs         string `form:"ValidUrls" binding:"ValidUrlList"` | ||||
| 		GlobPattern  string `form:"GlobPattern" binding:"GlobPattern"` | ||||
| 		RegexPattern string `form:"RegexPattern" binding:"RegexPattern"` | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rowan Bohde
					Rowan Bohde