summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* add default values for SSH settings (#500)Lunny Xiao2016-12-291-25/+31
|
* Implementation of Folder JumpingSl@ny2016-12-281-0/+11
|
* Fix default cookie nameJoubert RedRat2016-12-271-1/+1
|
* Improve issue references in markdown (#471)Sandro Santilli2016-12-261-1/+34
| | | | | | | | | | * Improve issue references in markdown. (#3436) * Fix build * Fix lint * Fix comment typo
* Git LFS support v2 (#122)Fabian Zaremba2016-12-266-0/+767
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* Implement sendmail (#355)Philip Couling2016-12-252-9/+68
| | | | | | | | | | | | | | | | * Implemented sendmail. This piggybacks on existing configuration to keep the change simple * Changed privicy of new sendSMTP and sendSendmail functions * Fixed Lint errors * Seperated SMTP and sendmail into their own senders * Making new structs private as they should not be used externally now * Added sendmail setting to ini file * Minor code cleanup
* Simplified MinPasswordLength check (#475)Bwko2016-12-241-5/+1
|
* Added minimum password length to app.ini (#223)Bwko2016-12-241-0/+6
|
* Enables mssql support (#383)btrepp2016-12-241-0/+1
| | | | | | | | | | | | | | | | | | | * Enables mssql support Port of dlobs work in gogs. Enables options in index.js Enables MSSQL as a database option in go. Sets ID to 0 on initial migration. Required for MSSQL insert statements. Signed-off-by: Beau Trepp <beautrepp@gmail.com> * Vendors in denisenkom/go-mssqldb Includes golang.org/x/crypto/md4 as this is required by go-msssqldb Signed-off-by: Beau Trepp <beautrepp@gmail.com>
* Add default values for settings (#455)Lunny Xiao2016-12-234-24/+152
| | | | | | | | | | * add default values for settings * more default values * more default settings and labels resource * mv locale to options
* Fix race condition in unit test (#456)Ethan Koenig2016-12-231-2/+7
|
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-226-5364/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* fix bug #1122 log.smtp receiver configure error (#3602) (#451)Lunny Xiao2016-12-221-2/+2
|
* New settings option for a custom SSH host (#3763) (#446)Lunny Xiao2016-12-222-5/+6
| | | | | | * New settings option for a custom SSH host (#3763) * let default ssh listen addr empty
* update code.gitea.io/git (#450)Lunny Xiao2016-12-221-228/+251
|
* Bug fixes and tests for modules/base (#442)Ethan Koenig2016-12-222-30/+248
| | | Also address other TODOs
* Remove remaining Gogs reference on locales and cmd (#430)Joubert RedRat2016-12-211-243/+243
|
* Merge pull request #412 from strk/libravatar-sourceAndrey Nering2016-12-201-0/+2
|\ | | | | Add support for using "libravatar" as the GravatarSource
| * Add support for using "libravatar" as the GravatarSourceSandro Santilli2016-12-191-0/+2
| | | | | | | | | | Just to make it easier for administrator to configure libre avatar, as it is done for "duoshuo" and "gravatar"
* | Fix random string generator (#384)Denis Denisov2016-12-202-10/+26
| | | | | | | | | | | | | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* | serve video files using the HTML5 video tag (#418)Nico Mandery2016-12-201-0/+5
|/ | | | | | * serve video files using the HTML5 video tag * lint fix: add comment to IsVideoFile
* Don't use custom PBKDF2 function (#382)Lunny Xiao2016-12-151-41/+0
|
* Autogenerate Version on build (#190)Kim "BKC" Carlbäcker2016-12-131-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Autogenerate Version On Build * Fixes * Changed Version to v0.9.0 * balls * I hate newlines * Don't remove .VERSION-file on `make clean` * v0.9.0 => 1.0.0 * damn new-lines... * Always rebuild templates/.VERSION * Delete .VERSION * Update Makefile
* Correction LDAP validation (#342)Denis Denisov2016-12-121-0/+5
| | | | | | | | | | | | * Correction LDAP username validation As https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx describe spaces should not be in start or at the end of username but they can be inside the username. So please check my solution for it. * Check for zero length passwords in LDAP module. According to https://tools.ietf.org/search/rfc4513#section-5.1.2 LDAP client should always check before bind whether a password is an empty value. There are at least one LDAP implementation which does not return error if you try to bind with DN set and empty password - AD. * Clearing the login/email spaces at the [start/end]
* Fix alignment of tooltip and add bindata - related to #359 (#364)Henning Henkel2016-12-081-401/+401
|
* Integrate templates into bindata optionally (#314)Thomas Boerger2016-12-067-2/+226
| | | Integrated optional bindata for the templates
* [API] Pull Requests (#248)Kim "BKC" Carlbäcker2016-12-021-0/+22
|
* GitHub API Compliance (& linting)Kim "BKC" Carlbäcker2016-12-021-0/+3
|
* Fixed project name on setting module key APP_NAMEAvelino2016-12-021-1/+1
|
* Catch os... errorsBwko2016-12-023-3/+16
|
* Get rid of bin folder within makefile, enabled TiDB (#319)Thomas Boerger2016-12-012-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of the bin folder within the build process Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped latest make task, it is unused Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Added tidb tag to drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the cert build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped useless minwinsvc build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the useless build tags from drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de>
* Fixes xss, clickjacking & password autocompletionBwko2016-11-291-2/+5
|
* Integrate public as bindata optionally (#293)Thomas Boerger2016-11-303-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | * Dropped unused codekit config * Integrated dynamic and static bindata for public * Ignore public bindata * Add a general generate make task * Integrated flexible public assets into web command * Updated vendoring, added all missiong govendor deps * Made the linter happy with the bindata and dynamic code * Moved public bindata definition to modules directory * Ignoring the new bindata path now * Updated to the new public modules import path * Updated public bindata command and drop the new prefix
* Updated bindata to latest versionThomas Boerger2016-11-291-513/+536
|
* golint fixed for modules/authLunny Xiao2016-11-279-11/+90
|
* Merge pull request #269 from lunny/lunny/golint_modules_logThomas Boerger2016-11-275-56/+86
|\ | | | | Golint fixed for modules/log
| * golint fixed for modules/logLunny Xiao2016-11-265-56/+86
| |
* | modules/process: add ExecDirEnv (next to ExecDir)Mura Li2016-11-271-2/+8
| | | | | | | | | | | | | | Add a sibling to ExecDir which is capable of specifying environment variables, so that we can invoke `git` with GIT_INDEX_FILE, GIT_DIR, etc.. For #258
* | Golint fixed for modules/setting (#262)Lunny Xiao2016-11-2710-54/+65
|/ | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* Merge pull request #246 from Bwko/fix/typoThomas Boerger2016-11-251-1/+1
|\ | | | | Fix typos
| * Fix typosBwko2016-11-211-1/+1
| |
* | Merge pull request #254 from lunny/lunny/golint_modules_contextThomas Boerger2016-11-256-2/+19
|\ \ | | | | | | Golint fixed for modules/context
| * | Golint fixed for modules/contextLunny Xiao2016-11-256-2/+19
| | |
* | | Merge pull request #256 from lunny/lunny/golint_modules_avatarThomas Boerger2016-11-251-3/+4
|\ \ \ | | | | | | | | Golint fixed for modules/avatar
| * | | golint fixed for modules/avatarLunny Xiao2016-11-251-3/+4
| |/ /