summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix Git hooks not being executed on Windows when running as a service (#1149)Andrey Nering2017-03-091-1/+2
| | | Closes #1139
* refactor: remove redundant slash. (#1109)Bo-Yi Wu2017-03-031-3/+1
|
* fix: gofmt errors. (#1106)Bo-Yi Wu2017-03-034-18/+20
|
* add ProxyFromEnvironment if none set (#1096)Schwobaland2017-03-021-1/+5
|
* Log config pretty printer (#1097)Jonas2017-03-021-0/+9
| | | Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* add back the default setting values and fix #739 (#1093)Lunny Xiao2017-03-011-4/+10
|
* Fixed custom templates for static builds (#1087)Thomas Boerger2017-03-012-15/+89
|
* fix some typos (#1082)Lunny Xiao2017-02-281-3/+3
|
* Fix for #828: Embed build tags (#1051)Jonas2017-02-282-1/+5
| | | | | | | | | | | | | | | | | | | | | * Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Fixed incorrect indentation
* Remove test that touch networkAndrey Nering2017-02-251-14/+2
|
* Fix URL handling in the whole markdown module, improve test coverage (#1027)Andrew Boyarshin2017-02-242-151/+264
| | | | | 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-1/+1
| | | | | to be an email address. Signed-off-by: P.B. <puffybsd@yahoo.com>
* fix panic when push but the only log mode console is disabled by serv and ↵Lunny Xiao2017-02-222-0/+11
| | | | update commands (#1007)
* Oauth2 consumer (#679)Willem van Dreumel2017-02-224-4/+112
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-211-1/+0
| | | | | | | | | | | | | | | | | | | | * 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
* disable console output xorm log on ssh (#993)Lunny Xiao2017-02-211-3/+5
|
* Make Xorm log configurable (#174)Lunny Xiao2017-02-202-4/+223
| | | | | | | | | | * make xorm log configable * bug fixed for other sub commands except web * rebase and fix xorm log * bug fix for TrimSpace
* Security: prevent XSS attach on wiki pageUnknwon2017-02-161-0/+2
| | | | Reported by Miguel Ángel Jimeno.
* fix ssh domain default value to domain (#930)Lunny Xiao2017-02-151-1/+4
|
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-0/+7
|
* Markdown rendering overhaul (#186)Andrew Boyarshin2017-02-142-138/+871
| | | | | | | | | | | | * 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
|
* Add missing copyright header to status table test (#902)Andrew2017-02-111-0/+4
|
* Implement archive cleanup (#885)Andrew2017-02-112-0/+27
| | | | | | | | | | | | | | | | * Implement archive cleanup Fixes #769 Signed-off-by: Andrew <write@imaginarycode.com> * Make sure to close the directory file * Resolve issues noted by @strk * edit cheatsheet app.ini [ci skip] * oops [ci skip]
* Improve status table implementation (#879)Andrew2017-02-093-12/+29
| | | | | | | | * Remove superfluous defer calls * Improve status table implementation as well This would probably only help with large, high-traffic installs
* Use assert in legacy unit tests (#867)Ethan Koenig2017-02-082-290/+174
|
* Redirects for renamed repos (#807)Ethan Koenig2017-02-051-4/+31
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Avoid duplicate queries in auth (#827)Ethan Koenig2017-02-051-57/+48
| | | Avoid identical making calls to GetUserByID(..) in SignedInUser(..)
* Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 (#801)Matthias Loibl2017-02-051-1/+3
| | | | | | * Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 * Add comment for golint to blank pprof import
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-0/+15
| | | | | | | | | | | | | | | | * 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
* Allow using custom time format (#798)ʿAhed ʿid2017-02-041-1/+11
| | | | | | | | | | | | | | | * Allow using custom time format I need to use custom time format in `conf/app.ini' like FORMAT = 2006-01-02 15:04:05 so that Gitea will display '2017-01-30 08:41:49' check this answer for more constants to format date <http://stackoverflow.com/a/20234207/2570425> PS: First GO commit * Refactor and validate TimeFormat (must have 2006, 01, 02, 15, 04 and 05)
* Cleanup log messagingGabriel Jackson2017-02-026-44/+43
| | | | | | | | | 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
* Allow custom public files (#782)Thomas Boerger2017-01-281-0/+17
| | | | | | * Allow custom public files * Gofmt code, lots of places not related to this pr
* refactor: Remove unnecessary type conversions (#772)Bo-Yi Wu2017-01-273-4/+4
|
* Merge pull request #736 from andreynering/fix-windows-sshAndrey Nering2017-01-257-2/+149
|\ | | | | Fix SSH server on Windows when running as service
| * Fix lintAndrey Nering2017-01-231-1/+1
| |
| * Fix SSH server on Windows when running as serviceAndrey Nering2017-01-233-4/+14
| | | | | | | | Closes #680
| * Merge commit 'af636848622c8ad27cace63be5f9dd9aaa565502' as 'modules/minwinsvc'Andrey Nering2017-01-235-0/+137
| |
* | Update Website binding MaxSize to 255 (#722)Bwko2017-01-254-6/+6
| |
* | Search bar for issues/pulls (#530)Ethan Koenig2017-01-253-0/+45
|/
* fix logfile name (#731)DWE2017-01-231-1/+1
|
* Add option to app.ini to enable local import paths (#724)Bwko2017-01-231-2/+4
|
* Remove the default console logger when it is not set in the configuration (#602)willemvd2017-01-172-0/+21
| | | | | | | | | | | | * Remove the default console logger when it is not set in the configuration * Added comment to new function (lint failure) * update based on PR comments (code style) * code style fix (thanks bkcsoft) * check if logger exists based on the l.outputs (like in l.DelLogger) instead of adapter, otherwise panic when reinstalling gitea (since the output adapter still exist, without outputs)
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-172-72/+120
| | | | | | | | | | * 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-161-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-152-1/+3
| | | | | | | | | | | | | | * 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
* Don't create a default pid file (#637)Bwko2017-01-141-4/+2
|
* docs: update translation on homepage for zh-tw (#634)Bo-Yi Wu2017-01-111-1/+1
|
* refactor: check the error returned by os.MkdirAll()Bo-Yi Wu2017-01-091-1/+3
|