summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix "data race" in testlogger (#9159)zeripath2019-11-2667-200/+213
| | | | | | * Fix data race in testlogger * Update git_helper_for_declarative_test.go
* Fix #9151 - smtp logger configuration sendTos should be an array (#9154)zeripath2019-11-251-1/+5
| | | | | | * Fix #9151 - sendTos should be an array * trimspace from the addresses
* Add comment highlight when target from url (#9047)jaqra2019-11-255-2/+32
| | | | | | | | | | | | | | | | * Add comment highlight css * Add js to remove highlight on click outside * Improve refresh page on click outside * Use location.hash property to remove target * Handle click ONLY clicked outside of 'targetted comment' (not other comment) * Remove unnecessary checks and simply code * Combine hash and setState to remove target path
* Add avatar and issue labels to template repositories (#9149)John Olheiser2019-11-258-21/+94
| | | | | | | | | | * Add avatar and issue labels Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix redundant if-err Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix max length check and limit in multiple repo forms (#9148)Lauris BH2019-11-256-15/+15
| | | | | | * Fix input field max length for release, label and milestone forms * Add max length for isseu and PR title
* update #9066 Always show Password field on link account sign in page (#9147)Benno2019-11-242-1/+2
|
* Fix what information is shown about user in API. (#9115)David Svantesson2019-11-241-7/+7
| | | | | | * Fix what information is shown about user in API. * Use Email directly, as KeepEmailPrivate is already handled.
* Add git hooks and webhooks to template repositories; move to services (#8926)John Olheiser2019-11-248-115/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add git hooks and webhooks to template options Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update models/repo.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add tooltip if the user can't edit git hooks Signed-off-by: jolheiser <john.olheiser@gmail.com> * Close repositories after copying git hooks Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wording Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Restructure for services Signed-off-by: jolheiser <john.olheiser@gmail.com> * Return errors Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move GenerateRepository to using a DBContext Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wrap with models.WithTx Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove debug print Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move if-error-delete-repo outside WithTx Signed-off-by: jolheiser <john.olheiser@gmail.com> * Return nil if no repo generated Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix team links in HTML rendering (#9127)guillep2k2019-11-243-17/+46
| | | | | | * Fix team links in HTML rendering * Fix check and lint
* Graceful: Allow graceful restart for fcgi (#9112)zeripath2019-11-242-16/+18
| | | | | | | | | * Graceful: Allow graceful restart for fcgi My previous interpretation was incorrect - we do not handle sockets being passed in over stdin * Update web.go
* Fix show single review comments in the PR page (#9143)guillep2k2019-11-242-3/+34
|
* Move mirror sync actions to notification (#9022)Lunny Xiao2019-11-248-81/+135
| | | | | | * Move mirror sync actions to notification * fix lint
* Graceful: Allow graceful restart for unix sockets (#9113)zeripath2019-11-244-30/+31
| | | | Previously we could not handle graceful restarts for http over unix sockets. These can now be handled.
* fix add comment button text align (#9140)Benno2019-11-242-3/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-2330-0/+123
|
* fix race on indexer (#9136)Lunny Xiao2019-11-231-7/+12
|
* Add single sign-on support via SSPI on Windows (#8463)QuaSoft2019-11-23174-1305/+6362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
* Send tag create and push webhook when release created on UI (#8671)Benno2019-11-221-0/+9
| | | | | | | | | | | | | | | | | | * 'update' * Send push tag event when release created * send tag create event while release created in UI * update to go v1.13 * fix gofmt error * update #8671 move release tag created hook to modules/notification/webhook due to #8802 refactoring * use NotifyCreateRef and NotifyPushCommits instead of NotifyNewReleaseTag * move tag notification to correct place
* Run make fmt on master (#9129)David Svantesson2019-11-221-5/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-221-0/+3
|
* Fix race condition in ReplaceSanitizer (#9123)zeripath2019-11-221-1/+0
|
* fixed reCAPTCHA URL (#9083)Koichi MATSUMOTO2019-11-221-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-221-0/+3
|
* Hide credentials when submitting migration (#9102)Jordan2019-11-221-1/+1
| | | | through API. Same fix, using form.CloneAddr instead of opts.CloneAddr.
* move semantic.dropdown.custom.js to webpack (#9064)silverwind2019-11-2116-468/+455
| | | | | | | | | | | | | * move semantic.dropdown.custom.js to webpack Also disabled a annoying linter rule which insisted that imports can not contain a file extension. Fixes: https://github.com/go-gitea/gitea/issues/8971 * reorganize web_src files and rebuild * restart ci
* Add USE_SERVICE_WORKER setting (#9110)silverwind2019-11-216-17/+35
| | | | | | | | | | * Add USE_SERVICE_WORKER setting This will be very useful setting for anyone doing frontend work. Fixes: https://github.com/go-gitea/gitea/issues/9044 * prevent potential syntax error on old browsers
* Add Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964)zeripath2019-11-2130-497/+666
| | | | | | | | | | | | | | | | | | * Graceful Shutdown for windows and others Restructures modules/graceful, adding shutdown for windows, removing and replacing the old minwinsvc code. Creates a new waitGroup - terminate which allows for goroutines to finish up after the shutdown of the servers. Shutdown and terminate hooks are added for goroutines. * Remove unused functions - these can be added in a different PR * Add startup timeout functionality * Document STARTUP_TIMEOUT
* Move merge actions to notification (#9024)Lunny Xiao2019-11-216-21/+69
| | | | | | * Move merge actions to notification * Add missing mail notification
* Move HttpBackend function to Http to reduce function calls when git smart ↵Lunny Xiao2019-11-211-50/+47
| | | | http requests (#9057)
* [fix] typo (#9104)maicss2019-11-211-1/+1
|
* Add template repositories to comparison (#9101)John Olheiser2019-11-201-0/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix nil context user (#9099)John Olheiser2019-11-201-1/+7
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Hide given credentials for migrated repos. (#9097)Jordan2019-11-202-1/+2
| | | | | | CloneAddr was being saved as OriginalURL. Now passing OriginalURL through from the form and saving it in it's place
* Refactor Issues Subscription (#8738)65432019-11-206-52/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * FIX: getIssueWatchers() get only aktive suscriber * save query to work later with it or not ... * fix test + add new case * corect tests + GetIssueWatch * API issue_subscripton: Put/Delete require tocken * remove redundant code * swagger specify return value * remove unused binding * remove note because I'll implement this in a different way and in another PR * ID should be unique! * use xorm session * Revert "use xorm session" This reverts commit c1de540147199f2f1a8dd0d008f54af3603e2229. * better test code * more acurate comments * use assert.False/True instead of Equal * use more assert methodes
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+10
|
* Team permission to create repository in organization (#8312)David Svantesson2019-11-2027-63/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add team permission setting to allow creating repo in organization. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test case for creating repo when have team creation access. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * build error: should omit comparison to bool constant Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment on exported functions * Fix fixture consistency, fix existing unit tests * Fix boolean comparison in xorm query. * addCollaborator and changeCollaborationAccessMode separate steps More clear to use different if-cases. * Create and commit xorm session * fix * Add information of create repo permission in team sidebar * Add migration step * Clarify that repository creator will be administrator. * Fix some things after merge * Fix language text that use html * migrations file * Create repository permission -> Create repositories * fix merge * fix review comments
* Explore page: Add topic param to pagination (#9077) (#9078)David Svantesson2019-11-201-0/+2
|
* Fix doc example for asciidoc (#9072)guillep2k2019-11-201-2/+2
| | | | | | | | | | * Fix doc example for asciidoc * Update config-cheat-sheet.en-us.md * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+16
|
* update golang.org/x/crypto vendor to use acme v2 (#9056)techknowlogick2019-11-2052-2942/+3429
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-208-8/+0
|
* Fix password checks on admin create/edit user (#9076)guillep2k2019-11-201-3/+14
| | | | | | * Fix password checks on admin create/edit user * Remove incorrect trimspace
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-193-3/+2
|
* Add password requirement info on error (#9074)guillep2k2019-11-199-24/+72
| | | | | | | | | | | | | | * Add password requirement info on error * Move BuildComplexityError to the password pkg * Unexport complexity type * Fix extra line * Update modules/password/password.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Context menus for comments (#9043)John Olheiser2019-11-1910-63/+110
| | | | | * Add quote replies Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+1
|
* fix placeholders in the error message (#9060)Iwasa Kazmi2019-11-191-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+5
|
* Avoid re-issuing redundant cross-references. (#8734)guillep2k2019-11-194-31/+56
| | | | | | | | | | * Avoid re-issuing redundant cross-references. * Remove unused func; fix lint * Simplify code as suggested by @laftriks * Update test
* fix: add search to reserved usernames (#9063)Antoine GIRARD2019-11-182-0/+2
| | | | | | | | * fix: add search to reserved usernames * Update integrations/user_test.go Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>