summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* fix duplicated feed (#2370)Lunny Xiao2017-08-282-2/+0
|
* Fix missing collabrative repos (#2367)Lunny Xiao2017-08-242-18/+21
| | | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+10
|
* Log failed authentication attempts with remote address for fail2ban (#2334)David Schneiderbauer2017-08-241-0/+2
| | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-233-42/+21
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* Improve swagger doc (#2274)Antoine GIRARD2017-08-2119-62/+294
| | | | | | | | | | | | | | | | | | | | * Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
* Add OpenID configuration in install page (#2276)Sandro Santilli2017-08-193-26/+36
|
* Add AppURL without trailing slash to TOTP issuer parameter to prevent ↵David Schneiderbauer2017-08-191-1/+1
| | | | | conflicting accounts on multiple gitea installations (#2335) Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix variable name typo (#2327)Morlinest2017-08-181-2/+2
|
* Make SHOW_USER_EMAIL also apply to profiles (#2258)Michael Kuhn2017-08-171-0/+2
| | | The e-mail address is currently only hidden from the explore page.
* Trigger sync webhooks on UI commit (#2302)Ethan Koenig2017-08-171-14/+1
| | | | | | * Trigger sync webhooks on UI commit * Also fix UI upload/delete
* Fix and improve dashboard repo UI (#2285)Morlinest2017-08-172-0/+3
| | | | | | | | | | | | | | | | * Fix and improve dashboard repo UI * Change order of scripts loading * Remove "mirror" tab * Remove single tab panel for "org user" * Add localization strings * Create vue component and change event for search * Add "mirrors" filter
* Fix rendering of external links (#2292)Ethan Koenig2017-08-132-1/+2
|
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-124-12/+15
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-035-57/+109
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-023-5/+5
|
* Fix Commits nil pointer dereference (#2203)Bwko2017-07-311-0/+4
|
* Fixed robots.txt 404 error (#2226)Florian / sinnlosername2017-07-301-1/+1
| | | | | | * Update routes.go * Update routes.go
* Check for access in /repositories/:id (#2227)Ethan Koenig2017-07-301-1/+4
| | | | | | * Check for access in /repositories/:id * Integration test
* fix some bugLunny Xiao2017-07-281-5/+5
|
* Fix bare-repo bugs (#2199)Ethan Koenig2017-07-271-1/+4
| | | | | | | | * Fix bare-repo bugs * Integration tests * Unused import
* Only allow token authentication with 2FA enabled (#2184)Moritz Heiber2017-07-261-6/+32
| | | | | | | | | | | | | | * Don't allow for plain username/password authentication when 2FA is enabled * Removed debugging statement * Don't assume a token belongs to a given user, handle two-factor errors properly * Simplified user/token matching, refactored error handling for two-factor authentication * Change authentication response to avoid bruteforcing * Add TODO item as a comment for changing the response for security purposes
* Revert "Add ability to fork your own repos (#761)" (#2193)Bwko2017-07-261-0/+6
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-172-21/+30
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Fix OpenID registration route (#2160)Christian Weiske2017-07-131-1/+1
| | | Fixes #2101
* API: support '/orgs/:org/repos' (#2047)Aaron Walker2017-07-132-0/+19
| | | * API: support '/orgs/:org/repos'
* Fix repo API bug (#2133)Ethan Koenig2017-07-126-54/+63
| | | Don't require token when not necessary
* Fix GET /users/:username/repos endpoint (#2125)Ethan Koenig2017-07-101-30/+30
|
* Improve org error handling (#2117)Antoine GIRARD2017-07-063-5/+5
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Fix git hooks update to receive required arguments. Fixes #2090 (#2095)Lauris BH2017-07-021-1/+2
| | | * Changed migration calling so that migrations can use models package
* Fix API for branches with slashes (#2096)Ethan Koenig2017-07-022-2/+9
|
* Fix release display and correct paging (#2080)Lauris BH2017-06-292-17/+15
|
* Pagination on releases page (#2035)iszla2017-06-281-2/+8
| | | | | | | | | | | | | | | | | | | | | | * Added count to GetReleasesByRepoID so pagination will work * Separated it out to a new function, can then also leave the API part unaffected * Remove extra whitespace added in untouched function * Added comment and corrected name in error handler * Account for if the user is owner or not in the count * Also check if repo is draft * revert back to the correct count in the ReleasesToDisplay loop * Fixed lint error regarding else with return statement * Use Cond struct instead of string, corrected name in error handler * Removed unused return variable names
* Fix: `http: multiple response.WriteHeader calls` (#2038)Shuanglei Tao2017-06-281-1/+0
| | | We can't change the http status code here, because the response has been written.
* Make time diff translatable (#2057)Lauris BH2017-06-285-10/+10
|
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-252-3/+4
|
* Integration tests for issues API (#2059)Ethan Koenig2017-06-251-15/+13
|
* Load label ID in NewLabels (#2045)Ethan Koenig2017-06-252-2/+2
|
* Fix bug in issue labels API (#2048)Ethan Koenig2017-06-251-2/+2
|
* Fix displaying commits and files of PR created from now deleted fork (#2023)Kim "BKC" Carlbäcker2017-06-221-6/+14
|\ | | | | Fix displaying commits and files of PR created from now deleted fork
| * Fix displaying commits and files of PR created from now deleted forked ↵Lauris Bukšis-Haberkorns2017-06-211-6/+14
| | | | | | | | repository
* | repo/editor: fix breadcrumb path cuts parent dirs (#3859) (#2032)Lunny Xiao2017-06-221-18/+29
| |
* | Display config file path on admin panel (#2030)Lunny Xiao2017-06-221-0/+1
| |
* | Fix #2001 and fix issue comments hidden (#2016)Lunny Xiao2017-06-211-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * revert #2001 and fix issue comments hidden * fix #2001 * fix import * improve comment type * reduce unnecessary join * fix comment on FindCommentsOptions
* | Make branch deletion URL more like GitHub's, fixes #1397 (#1994)Lauris BH2017-06-214-70/+138
|/ | | | | | | | | | | | * Make branch deletion URL more like GitHub's, fixes #1397 * Add PR branch deletion integration test * Do not allow deleting protected branch * Change http error code to 403 if user has no write rights to repository * Add check to not panic if forked repository has alrady been deleted
* Let not-logged-in users view releases (#1999)Ethan Koenig2017-06-182-4/+9
|
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Fix deleted milestone bug (#1942)Ethan Koenig2017-06-171-0/+10
| | | | | | | | * Fix deleted milestone bug * Use locale for ghost milestone name * Fix pointer bug
* Separate generate swagger + fix sed os specific (#1791)Antoine GIRARD2017-06-151-4/+0
| | | | | | | | | | | | | | | | | * Separate generate-swagger * Remove go generate rules * Add missing definition replacement + remove use of -i sed flag for compatibility with mac os default sed version. This is a little hacky a better solution could be use. * Use custom SED_INPLACE depending of platform detection * Use SED_INPLACE for swagger-ui also
* Fix search by issue type (#1914)Ethan Koenig2017-06-151-1/+11
| | | | * Fix search by issue type