2
0
Commit Graph

26 Commits

Author SHA1 Message Date
Lauris BH
9a9e56cbfb Refactor and simplify redirect to url (#3674) 2018-03-15 22:13:34 +01:00
Piotr Orzechowski
285a399137 Add option to enable or disable swagger endpoints (#3502) 2018-02-14 06:46:00 +02:00
Lauris BH
d7802b5d96 Fix go-get content type (#3426) 2018-01-29 19:50:04 +02:00
Lauris BH
fb7d0088ae Add doctype to go-get=1 reponse (#3423) 2018-01-29 03:12:04 +02:00
Morgan Bazalgette
2173e7d6b1 Handle refactor (#3339)
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound

* Change Handle(403) to NotFound, avoid using macaron's NotFound
2018-01-10 23:34:17 +02:00
Lauris BH
c5bbb9ed4b Add reactions to issues/PR and comments (#2856) 2017-12-04 01:14:26 +02:00
Lunny Xiao
a15d8c22e1 Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName

* fix tests

* fix tests bug

* some improvements
2017-12-02 15:34:39 +08:00
Ethan Koenig
7c56820685 Various wiki bug fixes (#2996)
* Update macaron

* Various wiki bug fixes
2017-11-28 17:43:51 +08:00
Lauris BH
b18cd29792 Fix go-get, src and raw urls to new scheme (#2978) 2017-11-27 02:58:54 +02:00
Lauris BH
0ba0e3023e Fix go get response if only app URL is custom in configuration (#2634)
* Fix go get response if only app URL is custom in configuration

* Rewrite to update Domain setting to match AppURL
2017-10-02 21:55:09 +08:00
Kim "BKC" Carlbäcker
ab635e1293 Always return valid go-get meta, even if unauthorized (#2010)
* Always return valid go-get meta, even if unauthorized

* don't leak information
2017-06-26 09:06:40 +08:00
Sandro Santilli
3c702d13c5 Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION

Omit the configuration variable (the default) to be dependent.
Fixes #1363

* Move OpenID settings under Service object

* Show OpenID SignUp and SignIn status in admin panel / configuration
2017-03-29 18:57:43 +08:00
Sandro Santilli
aa764ab02b Login via OpenID-2.0 (#618) 2017-03-17 15:16:08 +01:00
Ethan Koenig
f027815046 Fix typos in models/ and modules/ (#1248) 2017-03-15 08:52:01 +08:00
Bwko
3a74fe8290 Fixes xss, clickjacking & password autocompletion 2016-11-29 22:49:06 +01:00
Lunny Xiao
c9d61f0e2a Golint fixed for modules/setting (#262)
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
2016-11-27 18:14:25 +08:00
Lunny Xiao
9f958b7084 Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
Sandro Santilli
acb138c244 Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
2016-11-10 17:24:48 +01:00
Matthias Loibl
b2f20b4726 Fix imports found by goimports. 2016-11-05 17:56:35 +01:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
Unknwon
e40f64e2c9 router/repo: code refactoring 2016-08-30 02:08:38 -07:00
Unknwon
3f60d71e08 #1601 support delete issue comment 2016-07-26 02:48:17 +08:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
838956a918 Convert all API handers to use *context.APIContext 2016-03-13 18:49:16 -04:00
Unknwon
d8f27ecbf6 Add APIContext 2016-03-13 17:37:44 -04:00
Unknwon
529f8d9b4b Rename module: middleware -> context 2016-03-11 11:56:52 -05:00