4974 Commits (c0ea3963be91dbd1f436d390ce5223c7ad116479)
 

Author SHA1 Message Date
Lunny Xiao c0ea3963be fix delete repo will hang on postgres (#1044) 7 years ago
Andrew Boyarshin 0602a44b27 Fix URL handling in the whole markdown module, improve test coverage (#1027)
Amended with string to bool change in API SDK.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years ago
Lunny Xiao 12e71e5706 Removed footer copyright year (#829)
* change footer copyright year from 2016 to 2017

* add 2016 copyright back

* remove the copyright year
7 years ago
Ethan Koenig 76057105ca Remove unnecessary loads in org_team (#1035) 7 years ago
Ethan Koenig f1ab906c51 Unit tests for models/repo_collaboration (#1032) 7 years ago
puffybsd 8de8e11487 Fixes 1019, install page SMTP user is required to (#1020)
to be an email address.

Signed-off-by: P.B. <puffybsd@yahoo.com>
7 years ago
Dan Morrill 832477b1bc Tweak docker target to work by default. (#1033)
Fix for #1013: adds "bindata" to tags by default, as without this the
resulting docker image won't start, as it doesn't contain locale files.
Verified to work even if you specify TAGS="bindata" such that it appears
twice.
7 years ago
bit 490d3771f7 s/fields/terms (#1031)
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
7 years ago
Lunny Xiao d077fd084a added missing new struct sync (#1021) 7 years ago
Lunny Xiao 0e6b9ea786 Take back control of hooks (#1006)
* git: delegate all server-side Git hooks (#1623)

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
7 years ago
Ethan Koenig 4f3880ff15 Bug fixes and unit tests for org_team (#1016) 7 years ago
Andrey Nering d181113b82 Merge pull request #1017 from ethantkoenig/fix_lint
Fix lint errors
7 years ago
Ethan Koenig ec3a696e2d Fix lint errors 7 years ago
Lunny Xiao 1f7837d6d6 Refactor for issues loadattributes of a repository (#971)
* refactor for issues loadattributes of a repository

* refactors
7 years ago
Bo-Yi Wu 29c6f32a3b Fix some links. (#1005) 7 years ago
Bo-Yi Wu 83b6d03231 fix: Wrong repo list on Explore page if user already loggin. (#1009)
* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable
7 years ago
Lunny Xiao d6748284bd fix panic when push but the only log mode console is disabled by serv and update commands (#1007) 7 years ago
Willem van Dreumel 01d957677f Oauth2 consumer (#679)
* 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)
7 years ago
Denis Denisov fd941db246 Protected branches system (#339)
* 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
7 years ago
Thomas Boerger fe5ff8e4b2 Added 1.0.2 to changelog (#998) 7 years ago
Lunny Xiao 70ae6d197b disable console output xorm log on ssh (#993) 7 years ago
Christoph König ffde33bdfa Fix typo (#990) 7 years ago
Willem van Dreumel 5f234ce2a5 add missing copyright header (#992) 7 years ago
Lunny Xiao c5f8b96dda update xorm for fixing bug on processor BeforeSet and AfterSet when Find a map (#987) 7 years ago
Lunny Xiao 04fdeb9d8d Make Xorm log configurable (#174)
* make xorm log configable

* bug fixed for other sub commands except web

* rebase and fix xorm log

* bug fix for TrimSpace
7 years ago
Andrew Boyarshin d4b752def9 Fix table headers (#980)
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years ago
Lunny Xiao c2c27891c9 add release cycle to contributing (#949) 7 years ago
Lunny Xiao b8f70a27a5 Security: fix XSS attack on alert (#973) 7 years ago
Lunny Xiao 6076c95dd1 Security: fix XSS attack on milestone (#976)
Reported by Miguel Ángel Jimeno.
7 years ago
Lunny Xiao dbe6d2ff8e fix docker link on install page (#964) 7 years ago
Bo-Yi Wu 252adc912d refactor: update debian script. (#965) 7 years ago
Ethan Koenig be48b32e63 Unit tests for repo watching (#963) 7 years ago
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard (#943)
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
7 years ago
Kim "BKC" Carlbäcker 669dad71f8 Add Screenshot-secion to IssueTemplate.md (#939)
For `UI`-bugs we usually require a Screenshot to debug it 😉
7 years ago
Ethan Koenig 140967f002 Unit tests for repo redirects (#961) 7 years ago
Bo-Yi Wu 4c12e2a4b9 fix: fill in ssh key title on setting of repo (#950)
* fix: fill in ssh key title on setting of repo

* fix: Don't overwrite ssh key title if exist.
7 years ago
Lunny Xiao 7fd14bf7bd optimization for team get repos (#953) 7 years ago
Lunny Xiao 46320f9630 refactor notificationsForUser since xorm In support slice of customerize type (#956) 7 years ago
Lunny Xiao 0642cb330c Small opitimization for getUserTeams (#954)
* Small opitimization for getUserTeams

* more compact
7 years ago
Unknwon 134f3e6e09 Security: prevent XSS attach on wiki page
Reported by Miguel Ángel Jimeno.
7 years ago
Bo-Yi Wu 43c94d0a6c test: Add testing for GetUserFork function (#944) 7 years ago
Bo-Yi Wu a31f64d639 fix: 500 error on /explore/repos page. (#946) 7 years ago
Bo-Yi Wu 9d2b830275 refactor: small optimize for sql query (#940)
* refactor: small optimize for sql query

* fix: get owner name if Searcher is not nil or user star page.
7 years ago
Lunny Xiao 837d346090 fix some older Gogs upgrade to Gitea (#929) 7 years ago
Lunny Xiao be55460b63 catch error on call setup on serv command (#932) 7 years ago
Lunny Xiao 9c645b54dc bug fixed on issues and pulls 7 years ago
Lunny Xiao cf47532ebc fix ssh domain default value to domain (#930) 7 years ago
Lunny Xiao 4cfde304df bug fixed for my repository (#933) 7 years ago
Lunny Xiao 7a9a5c8a69 Fix assigned issues dashboard (#920)
* 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
7 years ago
Lunny Xiao 3a91ac51a9 fix bug of multiple forks (#928) 7 years ago