summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* Add repo mirror sync API endpoint (#1508)Jonas2017-04-192-0/+13
| | | | | | | | * API: Add repo mirror sync * Correct error message * Change http status to 200
* Add internal routes for ssh hook comands (#1471)Lunny Xiao2017-04-191-0/+44
| | | | | | | | | | | | | | | | * add internal routes for ssh hook comands * fix lint * add comment on why package named private not internal but the route name is internal * add comment above package private why package named private not internal but the route name is internal * remove exp time on internal access * move routes from /internal to /api/internal * add comment and defer on UpdatePublicKeyUpdated
* Migrate WatchInfo struct to api (#1492)Antoine GIRARD2017-04-161-14/+2
| | | | | | | | * Remove WatchInfo and link to api struct * Add vendor temporary update * Return to gitea vendor source
* Orgs: fix org page title when full name is not defined (#1495)silverwind2017-04-151-1/+1
|
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-131-1/+1
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* Mirror sync interval specified as duration string (#1407)Jonas2017-04-081-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()
* fix gpg API panic when no verification (#1451)Lunny Xiao2017-04-061-2/+7
| | | | | | * fix gpg API panic when no verification * fix if condition
* Add copyright headersAndrey Nering2017-03-301-0/+4
|
* Add watch button on issueAndrey Nering2017-03-292-0/+48
|
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)Sandro Santilli2017-03-291-10/+10
| | | | | | | | | | | * 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
* GPG commit validation (#1150)Antoine GIRARD2017-03-222-0/+12
| | | | | | | | | | | | * GPG commit validation * Add translation + some little fix * Move hash calc after retrieving of potential key + missing translation * Add some little test
* Reduce conditionals in signin/signup inner forms (#1138)Kim "BKC" Carlbäcker2017-03-221-4/+9
|\
| * Reduce conditionals in signin/signup inner formsSandro Santilli2017-03-201-4/+9
| | | | | | | | by always using SignInLink and SignUpLink in the form action
* | Run "make fmt" with go-1.6 (#1333)Sandro Santilli2017-03-212-33/+33
| |
* | fix wiki bugs (#1294)Lunny Xiao2017-03-201-4/+16
|/
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-202-0/+24
|
* Add captcha support to OpenID based signupSandro Santilli2017-03-201-4/+5
|
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-1/+8
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-173-1/+577
|
* Add notice that LFS mirroring is not supported (#1251)Fabian Zaremba2017-03-161-0/+1
| | | | | | * Add notice that LFS mirroring is not supported * Drop German translation
* Implement GPG api (#710)Antoine GIRARD2017-03-163-0/+155
| | | | | | | | | | * Implement GPG API * Better handle error * Apply review recommendation + simplify database operations * Remove useless comments
* Batch updates for issues (#926)Ethan Koenig2017-03-152-37/+112
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-158-21/+14
|
* Rename /forget_password url to /forgot_passwordSandro Santilli2017-03-141-2/+2
| | | | | | | | | Also renames `forgot_password` translation key to `forgot_password_title` and `forget_password` to `forgot_password` Includes entry in CHANGELOG about the breaking change (and some markdown fixes in there)
* fix repo settings external tracker failed and check external urls (#1215)Lunny Xiao2017-03-131-2/+14
|
* Show a link to password reset from password change and delete account (#862)Sandro Santilli2017-03-112-0/+6
| | | | | | | It's helpful when you forgot your password thus cannot change it (can happen if you log in via OAuth2 or OpenID) Also make sure that both the delete-account and password-change links to forgot-password will have the primary email pre-filled
* fix leave team 404 (#1154)Lunny Xiao2017-03-091-0/+2
|
* fix UI display problem when wiki name is non-ascii charset (#1142)Lunny Xiao2017-03-081-2/+2
|
* Add basic integration test infrastructure (and new endpoint ↵Mura Li2017-03-062-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `/api/v1/version` for testing it) (#741) * Implement '/api/v1/version' * Cleanup and various fixes * Enhance run.sh * Add install_test.go * Add parameter utils.Config for testing handlers * Re-organize TestVersion.go * Rename functions * handling process cleanup properly * Fix missing function renaming * Cleanup the 'retry' logic * Cleanup * Remove unneeded logging code * Logging messages tweaking * Logging message tweaking * Fix logging messages * Use 'const' instead of hardwired numbers * We don't really need retries anymore * Move constant ServerHttpPort to install_test.go * Restore mistakenly removed constant * Add required comments to make the linter happy. * Fix comments and naming to address linter's complaints * Detect Gitea executale version automatically * Remove tests/run.sh, `go test` suffices. * Make `make build` a prerequisite of `make test` * Do not sleep before trying * Speedup the server pinging loop * Use defined const instead of hardwired numbers * Remove redundant error handling * Use a dedicated target for running code.gitea.io/tests * Do not make 'test' depend on 'build' target * Rectify the excluded package list * Remove redundant 'exit 1' * Change the API to allow passing test.T to test handlers * Make testing.T an embedded field * Use assert.Equal to comparing results * Add copyright info * Parametrized logging output * Use tmpdir instead * Eliminate redundant casting * Remove unneeded variable * Fix last commit * Add missing copyright info * Replace fmt.Fprintf with fmt.Fprint * rename the xtest to integration-test * Use Symlink instead of hard-link for cross-device linking * Turn debugging logs on * Follow the existing framework for APIs * Output logs only if test.v is true * Re-order import statements * Enhance the error message * Fix comment which breaks the linter's rule * Rename 'integration-test' to 'e2e-test' for saving keystrokes * Add comment to avoid possible confusion * Rename tests -> integration-tests Also change back the Makefile to use `make integration-test`. * Use tests/integration for now * tests/integration -> integrations Slightly flattened directory hierarchy is better. * Update Makefile accordingly * Fix a missing change in Makefile * govendor update code.gitea.io/sdk/gitea * Fix comment of struct fields * Fix conditional nonsense * Fix missing updates regarding version string changes * Make variable naming more consistent * Check http status code * Rectify error messages
* fix panic when get user repos from api (#1110)Lunny Xiao2017-03-031-2/+2
|
* fix compare button failed when there is no fork repos (#1104)Lunny Xiao2017-03-031-1/+1
|
* fix some typos (#1082)Lunny Xiao2017-02-281-1/+1
|
* Link OAuth2 account to 2FA enabled account (fix #1050) (#1052)Willem van Dreumel2017-02-271-2/+20
| | | | | | * fixes #1050 where linking an account to a 2fa enabled account failed because we forgot to really link the account when 2fa is completed * handle errors
* API: support /users/:username/reposawwalker2017-02-273-32/+66
| | | | | | | | | | clean up fix arguments remove repeated token give admins listing rights
* refactor api issues load attributes for better performance (#1066)Lunny Xiao2017-02-271-5/+6
|
* fix: Admin can see all private repositories on Explore page. (#1026)Bo-Yi Wu2017-02-262-8/+6
| | | | | | * fix: Admin can see all private repositories on Explore page. * refactor: fix session
* Fix go vet faults (#1060)Ethan Koenig2017-02-262-4/+10
|
* fix 500 when use a duplicat email instead of giving an error tip (#1040)Lunny Xiao2017-02-251-7/+9
|
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-251-161/+35
| | | | | | | | | | | | (#1030) * move all push update to git hook post-receive and protected branch check to git hook pre-receive * add SSH_ORIGINAL_COMMAND check back * remove all unused codes * fix the import
* fix #13 (#1042)Lunny Xiao2017-02-251-1/+1
|
* fix 500 when change user setting email to an exist email (#1039)Lunny Xiao2017-02-251-0/+5
|
* Fix URL handling in the whole markdown module, improve test coverage (#1027)Andrew Boyarshin2017-02-242-3/+10
| | | | | 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-3/+3
| | | | | to be an email address. Signed-off-by: P.B. <puffybsd@yahoo.com>
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-2/+2
| | | | | | | | | | | | | | | | * 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
* Oauth2 consumer (#679)Willem van Dreumel2017-02-225-16/+430
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-212-22/+223
| | | | | | | | | | | | | | | | | | | | * 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
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-66/+32
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* fix: 500 error on /explore/repos page. (#946)Bo-Yi Wu2017-02-151-6/+7
|
* refactor: small optimize for sql query (#940)Bo-Yi Wu2017-02-151-11/+3
| | | | | | * refactor: small optimize for sql query * fix: get owner name if Searcher is not nil or user star page.
* bug fixed on issues and pullsLunny Xiao2017-02-151-8/+21
|