0ebb45cfe7 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ( #21551 )  
							
							... 
							
							
 
							
							Found using
`find . -type f -name '*.go' -print -exec vim {} -c
':%s/fmt\.Errorf(\(.*\)%v\(.*\)err/fmt.Errorf(\1%w\2err/g' -c ':wq' \;`
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								f2e7d5477f 
								
									
								
							
								 
							
						 
						
							
							
								
								refactor: move from io/ioutil to io and os package ( #17109 )  
							
							... 
							
							
 
							
							The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								9f31f3aa8a 
								
									
								
							
								 
							
						 
						
							
							
								
								Add an abstract json layout to make it's easier to change json library ( #16528 )  
							
							... 
							
							
 
							
							* Add an abstract json layout to make it's easier to change json library
* Fix import
* Fix import sequence
* Fix blank lines
* Fix blank lines 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								f0e15250b9 
								
									
								
							
								 
							
						 
						
							
							
								
								Migrate to use jsoniter instead of encoding/json ( #14841 )  
							
							... 
							
							
 
							
							* Migrate to use jsoniter
* fix tests
* update gitea.com/go-chi/binding
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								72636fd664 
								
									
								
							
								 
							
						 
						
							
							
								
								hCaptcha Support ( #12594 )  
							
							... 
							
							
 
							
							* Initial work on hCaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use module
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* At least return and debug log a captcha error
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Pass context to hCaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add context to recaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* fix lint
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Finish hcaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update example config
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Apply error fix for recaptcha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change recaptcha ChallengeTS to string
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								30fde478db 
								
							
								 
							
						 
						
							
							
								
								fixed reCAPTCHA URL ( #9083 )  
							
							
 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								ade88a877d 
								
							
								 
							
						 
						
							
							
								
								Allow Recaptcha service url to be configured ( #6820 )  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								f035dcd4f2 
								
							
								 
							
						 
						
							
							
								
								Add Recaptcha functionality to Gitea ( #4044 )  
							
							
 
							
						 
						
							7 years ago