summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix FIXME and remove superfluous queries in models/org (#749)Ethan Koenig2017-01-251-7/+27
|
* bug fixed caused by #530 (#755)Lunny Xiao2017-01-251-1/+1
|
* Search bar for issues/pulls (#530)Ethan Koenig2017-01-255-11/+38
|
* fixed bugs on Wiki and resolved #667 (#674)Lunny Xiao2017-01-211-10/+14
|
* Fix crash caused by #647 (#708)Bwko2017-01-201-1/+1
|
* Spun attachments into seperate go file (#701)Philip Couling2017-01-202-57/+73
| | | Moved attachments into seperate go file
* Fix permission bugs in team API (#647)Ethan Koenig2017-01-203-120/+136
|
* API Endpoints for organization members (#645)Ethan Koenig2017-01-202-0/+151
|
* Notifications: trying to get a better layout (#660)Andrey Nering2017-01-181-2/+2
| | | | | | | | | | | | | | * i18n button titles * Improvements on notification page layout * Notification count badge fixes * Make table <tr> clickable * Fix octicon aligment * Fix use of AppSubUrl
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-171-1/+1
| | | | | | | | | | * Add a process.Manager singleton with process.GetManager() * Use process.GetManager everywhere * Fix godoc comments for process module * Increment process counter id after locking the mutex
* Two factor authentication support (#630)Andrew2017-01-162-8/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for 2FA support Signed-off-by: Andrew <write@imaginarycode.com> * Add vendored files * Add missing depends * A few clean ups * Added improvements, proper encryption * Better encryption key * Simplify "key" generation * Make 2FA enrollment page more robust * Fix typo * Rename twofa/2FA to TwoFactor * UNIQUE INDEX -> UNIQUE
* Attach to release (#673)Philip Couling2017-01-153-6/+25
| | | | | | | | | | | | | | * Moved attachaments POST url from /issues/attachments to /attachments * Implemented attachment upload on release page * Implemented downloading attachments on the release page * Added zip and gzip files to default allowed attachments * Implemented uploading attachments on edit release * Renamed UploadIssueAttachment to UploadAttachment
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-143-6/+51
|