summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Mirror sync interval specified as duration string (#1407)Jonas2017-04-082-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sync interval specifed as duration string * Changed mirror interval text * make fmt * Add MinInterval for mirror sync * Use duration internally * Changed min default to 10m * make fmt * Incorrect default * Removed defaults in MustDuration() * Add Mirror interval migration * Default values corrected * Use transaction during migration * Change http 500 to page with error message * Cleanup session.commit()
* Remove unused mutex field (#1440)Mura Li2017-04-041-2/+0
|
* Fix races in the log module by using syncmap (#1421)Mura Li2017-04-031-26/+28
|
* Support for custom html meta (#1423)Jonas2017-03-312-0/+23
| | | | | | * Support for custom html meta * Changed html meta description default
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)Sandro Santilli2017-03-292-25/+27
| | | | | | | | | | | * Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION Omit the configuration variable (the default) to be dependent. Fixes #1363 * Move OpenID settings under Service object * Show OpenID SignUp and SignIn status in admin panel / configuration
* refactor: remove workaround after the golang 1.7 release. (#1349)Bo-Yi Wu2017-03-292-0/+30
| | | | | | | | | | | | | | * refactor: remove workaround after the golang 1.7 release. * remove unused import. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * refactor: Add remove function. * refactor: rename * refactor: update build flag
* Run "make fmt" with go-1.6 (#1333)Sandro Santilli2017-03-216-13/+9
|
* Delete the useless code (#1335)caiwp2017-03-201-4/+0
|
* remove empty file (#1326)Lunny Xiao2017-03-191-0/+0
|
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-18/+2
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-177-1/+225
|
* fix wrong log when push to a new branch (#1220)Lunny Xiao2017-03-171-0/+0
|
* Fix nil-dereference bugEthan Koenig2017-03-151-1/+5
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-1518-48/+48
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-152-3/+3
|
* 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
|