summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* feat: support pid file.Bo-Yi Wu2017-01-091-0/+23
|
* Add default SSH_LISTEN_PORT config value (#603) (#607)Manuel Kuhlmann2017-01-081-0/+1
|
* Add Keep email private (see issue #571). (#571)derSuessmann2017-01-082-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
* UI config to toggle whether user email shows up in Explore Users (#336)Thiago Avelino2017-01-011-0/+3
| | | | | | | | | | | | | | | | | | * UI config to toggle whether user email shows up in Explore Users * Recommendation made by @tboerger https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732 * fixed typo, rename ShowUserEmailInExplore to ShowUserEmail * Fixed typo merged conflict * Hide email in the user profile page if you are active ShowUserEmail ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725 * Please replace MustBool() with MustBool(true)
* Restrict creating organisations by user (#193)Schwobaland2016-12-311-13/+14
| | | | | | | | | | | | | | | | | | | | | | * restrict creating organizations based on right on user * revert bindata.go * reverse vendor lib * revert goimports change * set AllowCreateOrganization default value to true * revert locale * added default value for AllowCreateOrganization * fix typo in migration-comment * fix comment * add coments in migration
* fix gofmt errorBo-Yi Wu2016-12-302-4/+3
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Notification - Step 1 (#523)Andrey Nering2016-12-311-0/+50
| | | | | | | | * Notification - Step 1 * Add copyright headers * Cache issue and repository on notification model
* Repo permission bug fixes (#513)Ethan Koenig2016-12-291-30/+0
|