summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* fix some typos (#1082)Lunny Xiao2017-02-281-1/+1
|
* Link OAuth2 account to 2FA enabled account (fix #1050) (#1052)Willem van Dreumel2017-02-271-2/+20
| | | | | | * fixes #1050 where linking an account to a 2fa enabled account failed because we forgot to really link the account when 2fa is completed * handle errors
* API: support /users/:username/reposawwalker2017-02-273-32/+66
| | | | | | | | | | clean up fix arguments remove repeated token give admins listing rights
* refactor api issues load attributes for better performance (#1066)Lunny Xiao2017-02-271-5/+6
|
* fix: Admin can see all private repositories on Explore page. (#1026)Bo-Yi Wu2017-02-262-8/+6
| | | | | | * fix: Admin can see all private repositories on Explore page. * refactor: fix session
* Fix go vet faults (#1060)Ethan Koenig2017-02-262-4/+10
|
* fix 500 when use a duplicat email instead of giving an error tip (#1040)Lunny Xiao2017-02-251-7/+9
|
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-251-161/+35
| | | | | | | | | | | | (#1030) * move all push update to git hook post-receive and protected branch check to git hook pre-receive * add SSH_ORIGINAL_COMMAND check back * remove all unused codes * fix the import
* fix #13 (#1042)Lunny Xiao2017-02-251-1/+1
|
* fix 500 when change user setting email to an exist email (#1039)Lunny Xiao2017-02-251-0/+5
|
* Fix URL handling in the whole markdown module, improve test coverage (#1027)Andrew Boyarshin2017-02-242-3/+10
| | | | | Amended with string to bool change in API SDK. Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
* Fixes 1019, install page SMTP user is required to (#1020)puffybsd2017-02-241-3/+3
| | | | | to be an email address. Signed-off-by: P.B. <puffybsd@yahoo.com>
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-2/+2
| | | | | | | | | | | | | | | | * git: delegate all server-side Git hooks (#1623) * create hooks directories * take control hooks back * fix lint * bug fixed and minor changes * fix imports style * fix migration scripts
* Oauth2 consumer (#679)Willem van Dreumel2017-02-225-16/+430
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* Protected branches system (#339)Denis Denisov2017-02-212-22/+223
| | | | | | | | | | | | | | | | | | | | * Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-66/+32
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* fix: 500 error on /explore/repos page. (#946)Bo-Yi Wu2017-02-151-6/+7
|
* refactor: small optimize for sql query (#940)Bo-Yi Wu2017-02-151-11/+3
| | | | | | * refactor: small optimize for sql query * fix: get owner name if Searcher is not nil or user star page.
* bug fixed on issues and pullsLunny Xiao2017-02-151-8/+21
|
* Fix assigned issues dashboard (#920)Lunny Xiao2017-02-142-85/+110
| | | | | | | | | | | | | | | | | | | | | | * Fix assigned/created issues in dashboard. (#3560) * Fix assigned/created issues in dashboard. * Use GetUserIssueStats for getting all Dashboard stats. * Use gofmt to format the file properly. * Replace &Issue{} with new(Issue). * Check if user has access to given repository. * Remove unnecessary filtering of issues. * Return 404 error if invalid repository is given. * Use correct number of issues in paginater. * fix issues on dashboard
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-0/+1
|
* feat: support search bar on star tab of user profile. (#917)Bo-Yi Wu2017-02-141-55/+66
| | | | | | | | | | | | | | * feat: support search bar on star tab of user profile. * fix: update testing. * fix: Using loadAttributes * fix: remove empty line. * remove LOWER Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Markdown rendering overhaul (#186)Andrew Boyarshin2017-02-143-44/+448
| | | | | | | | | | | | * Markdown rendering overhaul Cleaned up and squashed commits into single one. Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com> * Fix markdown API, add markdown module and API tests, improve code coverage Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
* feat: add git version on admin panel. (#921)Bo-Yi Wu2017-02-131-0/+1
|
* Fix HighlightJS not working on compare diff page (#914)Andrey Nering2017-02-131-0/+1
|
* Add delete branch track on pull request comments (#888)Lunny Xiao2017-02-112-2/+13
| | | | | | * add delete branch track on pull request comments * don't change vendor
* fix: trim the whitespaces for the search keyword (#893)Bo-Yi Wu2017-02-117-11/+14
|
* Fix bug in repos search (#884)Ethan Koenig2017-02-101-5/+9
|
* fix: Admin can also search private user repository. (#869)Bo-Yi Wu2017-02-081-10/+10
|
* fix releases count and resolved #764 (#857)Lunny Xiao2017-02-071-1/+1
|
* feat: support paginater on star tab of user profile. (#845)Bo-Yi Wu2017-02-071-2/+17
|
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-2/+15
|
* Add checkbox to search for all the branches by commit message (#813)Zsombor2017-02-051-1/+5
| | | and updating the vendor directory
* Redirects for renamed repos (#807)Ethan Koenig2017-02-052-1/+13
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-045-26/+76
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-043-7/+61
|
* Track assignee for issue (#808)Lunny Xiao2017-02-031-0/+5
| | | | | | | | * track assignee for issue * fix lint * use getUserByID instead Get
* Drop redundant columns from issue_user table (#638)Ethan Koenig2017-02-031-16/+4
|
* Cache ctxUser in retrieveFeeds(..) (#826)Ethan Koenig2017-02-031-1/+3
|
* Cleanup log messagingGabriel Jackson2017-02-023-5/+5
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Remove unneeded database loads (#814)Ethan Koenig2017-02-021-3/+1
| | | Remove unnecessary calls to repo.GetOwner() in context handlers
* fix: User can see the private activity on public activity history. (#818)Bo-Yi Wu2017-02-021-5/+5
|
* add milestone changed traker on issue view (#804)Lunny Xiao2017-02-013-15/+24
|
* Bug fixes and unit tests for models/issue_label (#802)Ethan Koenig2017-02-011-1/+1
|
* Unit tests and remove unused functions in models/notification (#796)Ethan Koenig2017-01-301-1/+1
| | | | | | * Unit tests and remove unused functions in models/notification * Read -> Unread
* Track labels changed on issue view & resolved #542 (#788)Lunny Xiao2017-01-303-158/+177
| | | | | | * track labels changed on issue view & resolved #542 * add missing head comment & sort & fix refresh
* Allow custom public files (#782)Thomas Boerger2017-01-283-4/+3
| | | | | | * Allow custom public files * Gofmt code, lots of places not related to this pr
* Notifying on open PR, and Close/Reopen/Merge issue or PRAndrey Nering2017-01-282-0/+8
|
* Add ability to fork your own repos (#761)Bwko2017-01-261-6/+0
|
* Use handlers for API authorization (#723)Ethan Koenig2017-01-265-131/+100
|