Lunny Xiao and zeripath
8cd6be1723
Remove ReverseProxy authentication from the API ( #22219 ) ( #22252 )
...
backport #22219
Since we changed the /api/v1/ routes to disallow session authentication
we also removed their reliance on CSRF. However, we left the
ReverseProxy authentication here - but this means that POSTs to the API
are no longer protected by CSRF.
Now, ReverseProxy authentication is a kind of session authentication,
and is therefore inconsistent with the removal of session from the API.
This PR proposes that we simply remove the ReverseProxy authentication
from the API and therefore users of the API must explicitly use tokens
or basic authentication.
Replace #22077
Close #22221
Close #22077
Signed-off-by: Andrew Thornton <art27@cantab.net >
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2022-12-30 02:08:16 +02:00
73189f0a19
Update changelog for 1.17.4 ( #22198 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: John Olheiser <john+github@jolheiser.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2022-12-21 23:36:07 +02:00
Lunny Xiao
3d34cdabb9
Disable auto tag to prepare next 1.17 release ( #22180 )
...
Disable auto tag so that 1.17 release will not tag `:1`.
2022-12-20 12:14:07 -06:00
Lunny Xiao
0e95e7460e
Fix warn in database structs sync ( #22111 )
...
Fix #21880
2022-12-13 22:03:14 +08:00
Lunny Xiao
a8534ac4a4
Fix permission check on issue/pull lock ( #22114 )
...
Fix #22110
2022-12-12 20:59:28 +01:00
Lunny Xiao and KN4CK3R
8188cdfcd2
Fix ListBranches to handle empty case ( #21921 ) ( #22025 )
...
Fix #21910
Backport #21921
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2022-12-04 23:57:33 +02:00
Lunny Xiao
291787a5ef
Fix issues count bug ( #21600 )
...
backport #21557
2022-10-26 20:42:45 +08:00
Lunny Xiao
92b5f48c40
Update binding to fix bugs ( #21560 )
...
backport #21556 , Fix #19698
2022-10-24 02:17:13 +01:00
Lunny Xiao and zeripath
556e2d5506
Fix generating compare link ( #21519 ) ( #21530 )
...
Fix #6318 , backport #21519
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2022-10-21 20:59:27 +08:00
Lunny Xiao
f663773200
Fix limited user cannot view himself's profile ( #21212 )
...
backport #21210 , fix #21206
If user and viewer are equal the method should return true.
Also the common organization check was wrong as count can never be less then 0.
Tests are on main branch.
2022-09-20 16:00:46 +08:00
Lunny Xiao
a28677273b
Fix template bug of admin monitor ( #21209 )
...
backport #21208
2022-09-20 08:15:08 +08:00
32eef4aa2e
Add changelog for v1.17.2 ( #21089 )
...
Co-authored-by: John Olheiser <john+github@jolheiser.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2022-09-06 17:32:20 -04:00
Lunny Xiao
084797b4dc
Fix delete user missed some comments ( #21067 ) ( #21068 )
2022-09-06 06:48:57 +08:00
Lunny Xiao and John Olheiser
989dd5502c
Fix missed sort bug ( #21006 )
...
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2022-08-31 23:40:29 +08:00
Lunny Xiao
04105dbb7c
Fix download archiver of a commit ( #20962 ) ( #20971 )
2022-08-28 13:29:34 +02:00
Lunny Xiao and zeripath
c40c753613
Check Mirror exists before linking its Repo ( #20840 ) ( #20842 )
...
In MirrorRepositoryList.loadAttributes there is some code to load the Mirror entries
from the database. This assumes that every Repository which has IsMirror set has
a Mirror associated in the DB. This association is incorrect in the case of
Mirror repository under creation when there is no Mirror entry in the DB until
completion.
Unfortunately LoadAttributes makes this incorrect assumption and presumes that a
Mirror will always be loaded. This then causes a panic.
This PR simply double checks if there a Mirror before attempting to link back to
its Repo. Unfortunately it should be expected that there may be other cases where
this incorrect assumption causes further problems.
Fix #20804
Signed-off-by: Andrew Thornton <art27@cantab.net >
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2022-08-18 11:57:40 +03:00
7a9b01a2dd
Add migrate repo archiver and packages storage support on command line ( #20757 ) ( #20806 )
...
* Add migrate repo archiver and packages storage support on command line (#20757 )
* Add migrate repo archiver and packages storage support on command line
* Fix typo
* Use stdCtx
* Use packageblob and fix command description
* Add migrate packages unit tests
* Fix comment year
* Fix the migrate storage command line description
* Update cmd/migrate_storage.go
Co-authored-by: zeripath <art27@cantab.net >
* Update cmd/migrate_storage.go
Co-authored-by: zeripath <art27@cantab.net >
* Update cmd/migrate_storage.go
Co-authored-by: zeripath <art27@cantab.net >
* Fix test
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
* bug fix
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
2022-08-18 09:27:56 +08:00
Lunny Xiao
78dabdd9ae
fix merge ( #20819 )
2022-08-17 11:33:26 -04:00
eacab6b10d
Add disable download source configuration ( #20548 ) ( #20579 )
...
* Add disable download source configuration (#20548 )
Add configuration to enable/disable download source from UI.
Co-authored-by: zeripath <art27@cantab.net >
* Fix BaseVars not used in renderering
* Fix disabled open in vscode menu when disabling download source from UI
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2022-08-12 23:53:10 +08:00
ac9792c0c7
Check webhooks slice length before calling xorm ( #20642 ) ( #20768 )
...
Fixes : #20641
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Gabriel Vasile <gabriel.vasile@email.com >
2022-08-12 11:36:45 +03:00
Lunny Xiao
9ec1c8812e
Fix v220 migration to be compatible for MSSQL 2008 r2 ( #20702 ) ( #20707 )
2022-08-08 17:58:11 +02:00
Lunny Xiao and 6543
66686f6d0e
Hide notify mail setting ui if not enabled ( #20138 ) ( #20336 )
...
Co-authored-by: 6543 <6543@obermui.de >
2022-07-13 09:47:29 +08:00
3e4fe009e7
Check if project has the same repository id with issue when assign project to issue ( #20133 ) ( #20188 )
...
* Check if project has the same repository id with issue when assign project to issue
* Check if issue's repository id match project's repository id
* Add more permission checking
* Remove invalid argument
* Fix errors
* Add generic check
* Remove duplicated check
* Return error + add check for new issues
* Apply suggestions from code review
Co-authored-by: Gusted <williamzijl7@hotmail.com >
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: 6543 <6543@obermui.de >
2022-07-01 15:00:05 +02:00
Lunny Xiao
fb5ca1bf64
Fix wrong login requirement routers ( #20101 ) ( #20104 )
2022-06-24 15:02:22 +08:00
Lunny Xiao
dbafb4f4d4
Use correct variable for issue count ( #20086 )
2022-06-22 11:26:41 -05:00
Lunny Xiao
27ba86d283
move agit dependcy ( #19998 )
2022-06-17 20:17:12 +02:00
Lunny Xiao and zeripath
bdde56c95c
Fix Readme render bug ( #19992 )
...
Fix #19988
Co-authored-by: zeripath <art27@cantab.net >
2022-06-17 06:48:10 +01:00
Lunny Xiao
1e05adfc3e
Delete duplicated update btn on pull request view page ( #19993 )
...
Fix #19987
2022-06-17 05:52:06 +01:00
b01dce2a6e
Allow render HTML with css/js external links ( #19017 )
...
* Allow render HTML with css/js external links
* Fix bug because of filename escape chars
* Fix lint
* Update docs about new configuration item
* Fix bug of render HTML in sub directory
* Add CSP head for displaying iframe in rendering file
* Fix test
* Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de >
* Some improvements
* some improvement
* revert change in SanitizerDisabled of external renderer
* Add sandbox for iframe and support allow-scripts and allow-same-origin
* refactor
* fix
* fix lint
* fine tune
* use single option RENDER_CONTENT_MODE, use sandbox=allow-scripts
* fine tune CSP
* Apply suggestions from code review
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-06-16 11:33:23 +08:00
Lunny Xiao
d91d4db344
Move tests as seperate sub packages to reduce duplicated file names ( #19951 )
2022-06-15 09:02:00 +02:00
ff82a18315
Fix mirror template bug ( #19959 )
...
* Fix mirror template bug
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
2022-06-13 18:12:59 +02:00
Lunny Xiao
3c6c150740
Add deprecated log when using MySQL with utf8 charset ( #19952 )
2022-06-13 20:55:08 +08:00
Lunny Xiao
1a9821f57a
Move issues related files into models/issues ( #19931 )
...
* Move access and repo permission to models/perm/access
* fix test
* fix git test
* Move functions sequence
* Some improvements per @KN4CK3R and @delvh
* Move issues related code to models/issues
* Move some issues related sub package
* Merge
* Fix test
* Fix test
* Fix test
* Fix test
* Rename some files
2022-06-13 17:37:59 +08:00
Lunny Xiao
5f136783d1
[skip ci] Updated translations via Crowdin
2022-06-13 00:10:09 +00:00
Lunny Xiao
110fc57cbc
Move some code into models/git ( #19879 )
...
* Move access and repo permission to models/perm/access
* fix test
* Move some git related files into sub package models/git
* Fix build
* fix git test
* move lfs to sub package
* move more git related functions to models/git
* Move functions sequence
* Some improvements per @KN4CK3R and @delvh
2022-06-12 23:51:54 +08:00
Lunny Xiao and zeripath
ce3dd04c63
Fix some mirror bugs ( #18649 )
...
* Fix some mirror bugs
* Remove unnecessary code
* Fix lint
* rename stdard url
* Allow more charactors in git ssh protocol url
* improve the detection
* support ipv6 for git url parse
* Fix bug
* Fix template
* Fix bug
* fix template
* Fix tmpl
* Fix tmpl
* Fix parse ssh with interface
* Rename functions name
Co-authored-by: zeripath <art27@cantab.net >
2022-06-11 21:50:14 +08:00
Lunny Xiao and Andrew Thornton
dbe415fb91
Only log non ErrNotExist errors in git.GetNote ( #19884 )
...
* Fix GetNote
* Only log errors if the error is not ErrNotExist
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2022-06-07 16:39:50 +08:00
Lunny Xiao and delvh
26095115f4
Move some repository related code into sub package ( #19711 )
...
* Move some repository related code into sub package
* Move more repository functions out of models
* Fix lint
* Some performance optimization for webhooks and others
* some refactors
* Fix lint
* Fix
* Update modules/repository/delete.go
Co-authored-by: delvh <dev.lh@web.de >
* Fix test
* Merge
* Fix test
* Fix test
* Fix test
* Fix test
Co-authored-by: delvh <dev.lh@web.de >
2022-06-06 16:01:49 +08:00
Lunny Xiao
48be5e77e5
Increment tests time out from 40m to 50m because sometimes the machine is slow ( #19887 )
2022-06-05 12:24:51 +08:00
Lunny Xiao and zeripath
12c742f8dc
Fix order by parameter ( #19849 )
...
Upgrade builder to v0.3.11
Upgrade xorm to v1.3.1 and fixed some hidden bugs.
Replace #19821
Replace #19834
Included #19850
Co-authored-by: zeripath <art27@cantab.net >
2022-06-04 20:18:50 +01:00
Lunny Xiao
e09fb30d34
improvement some release related code ( #19867 )
2022-06-03 02:13:58 -04:00
Lunny Xiao
fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context ( #19748 )
...
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
2022-05-20 22:08:52 +08:00
Lunny Xiao
d81e31ad78
Move org functions ( #19753 )
...
* Move org functions
* Fix comment
2022-05-20 12:20:51 +02:00
Lunny Xiao
ea38e90e6b
Fix oauth setting list bug ( #19682 )
2022-05-11 21:06:02 +08:00
Lunny Xiao
cbd45471b1
Move access and repo permission to models/perm/access ( #19350 )
...
* Move access and repo permission to models/perm/access
* Remove unnecessary code
2022-05-11 12:09:36 +02:00
Lunny Xiao
64a40962cc
Fix new release from tags list UI ( #19670 )
2022-05-10 15:41:37 +03:00
Lunny Xiao
e435283c0f
Don't select join table's columns ( #19660 )
...
* Don't select join table
* Add comment
2022-05-09 23:19:16 +08:00
Lunny Xiao
9efa47131f
Admin should not delete himself ( #19423 )
...
Admin should not be able to delete themselves.
Also partially fix #15449
2022-05-08 21:22:55 +01:00
Lunny Xiao
290cc884f2
Restore reviewed-on message ( #19657 )
...
Regression from #18177
2022-05-08 20:13:27 +01:00
Lunny Xiao and delvh
4ca1d7547a
Move some helper files out of models ( #19355 )
...
* Move some helper files out of models
* Some improvements
Co-authored-by: delvh <dev.lh@web.de >
2022-05-08 18:46:32 +02:00
Lunny Xiao
d4834071da
Repository level enable package or disable ( #19323 )
2022-05-08 17:51:50 +02:00
Lunny Xiao and zeripath
4344a64107
Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md ( #18177 )
...
* Allow custom default merge message with .gitea/MERGE_MESSAGE_<merge_style>_TEMPLATE.md
* Some improvements
* Follow some advices
* Fix bug
* Fix bug
* Fix lint
* Fix close comment
* Fix test
* Fix and docs
* Improve codes
* Update docs and remove unnecessary variables
* return error for GetDefaultMergeMessage
* Fix test
* improve code
* ignore unknow unit type
* return error for GetDefaultMergeMessage
* Update services/pull/merge.go
* Some improvements
* Follow some advices
* Fix bug
* Fix lint
* Improve codes
* Update docs and remove unnecessary variables
* return error for GetDefaultMergeMessage
* improve code
* Handle deleted HeadRepo in GetDefaultMergeMessage
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Fix test
* Fix test
Co-authored-by: zeripath <art27@cantab.net >
2022-05-08 20:32:45 +08:00
Lunny Xiao
772ad761eb
Fix some slice problems (incorrect slice length) ( #19592 )
2022-05-03 17:04:23 +08:00
Lunny Xiao and zeripath
5651c650c0
When view _Siderbar or _Footer, just display once ( #19501 )
...
Co-authored-by: zeripath <art27@cantab.net >
2022-04-26 19:24:20 -04:00
Lunny Xiao
2728f0c213
Fix migrate release from github ( #19510 )
...
* Fix migrate release from github
* Fix bug
2022-04-26 19:24:06 -04:00
Lunny Xiao
d71df01077
Refactor readme file renderer ( #19502 )
...
* Refactor readme file renderer
* improve
2022-04-26 16:31:15 -04:00
Lunny Xiao
6cc8aed737
Fix two typos ( #19504 )
2022-04-26 18:01:42 +02:00
Lunny Xiao
03eba32bd9
Add a new menu in file view to open blame view and fix blame view select range bug ( #19500 )
2022-04-26 13:54:40 +03:00
Lunny Xiao
7c164d5a91
Use queue instead of memory queue in webhook send service ( #19390 )
2022-04-25 20:03:01 +02:00
Lunny Xiao
fc002860d8
Simplify the code to get issue count ( #19380 )
...
* Simple the code to get issue count
* Improve codes
2022-04-25 15:04:42 +08:00
Lunny Xiao
b8911fb456
Use a struct as test options ( #19393 )
...
* Use a struct as test options
* Fix name
* Fix test
2022-04-14 21:58:21 +08:00
Lunny Xiao
1dfa26e00e
Move milestone to models/issues/ ( #19278 )
...
* Move milestone to models/issues/
* Fix lint
* Fix test
* Fix lint
* Fix lint
2022-04-08 17:11:15 +08:00
Lunny Xiao
3c3d49899f
Remove dependent on session auth for api/v1 routers ( #19321 )
...
* Remove dependent on session auth for api/v1 routers
* Remove unnecessary session on API context
* remove missed header
* fix test
* fix missed api/v1
2022-04-08 06:22:10 +02:00
Lunny Xiao
783a021889
Never use /api/v1 from Gitea UI Pages ( #19318 )
...
Reusing `/api/v1` from Gitea UI Pages have pros and cons.
Pros:
1) Less code copy
Cons:
1) API/v1 have to support shared session with page requests.
2) You need to consider for each other when you want to change something about api/v1 or page.
This PR moves all dependencies to API/v1 from UI Pages.
Partially replace #16052
2022-04-07 20:59:56 +02:00
Lunny Xiao
cf5d4a7230
Upgrade xorm/builder from v0.3.9 to v0.3.10 ( #19296 )
...
xorm/builder v0.3.10 add support to EXISTS and NOT EXISTS.
2022-04-02 04:14:14 +08:00
Lunny Xiao and wxiaoguang
89b9d42f08
Fix broken of team create ( #19288 )
...
* Fix broken of team create
* Update models/organization/team.go
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-04-01 14:05:31 +08:00
Lunny Xiao
3a73645502
Performance improvement for add team user when org has more than 1000 repositories ( #19227 )
...
* performance improvement for add team user when org has more than 1000 repositories
* Fix bug
* Fix bug
2022-04-01 09:53:18 +08:00
Lunny Xiao
420851ca1f
Fix global packages enabled avaiable ( #19276 )
...
Fix #19275
2022-03-31 19:31:53 +02:00
Lunny Xiao and wxiaoguang
d4f84f1c93
Move reaction to models/issues/ ( #19264 )
...
* Move reaction to models/issues/
* Fix test
* move the function
* improve code
* Update models/issues/reaction.go
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-03-31 17:20:39 +08:00
Lunny Xiao
74731c3a5a
Move some issue methods as functions ( #19255 )
...
* Move some issue methods as functions
* Fix bug
2022-03-29 16:57:33 +02:00
Lunny Xiao and 6543
bd97736b9c
Move project files into models/project sub package ( #17704 )
...
* Move project files into models/project sub package
* Fix test
* Fix test
* Fix test
* Fix build
* Fix test
* Fix template bug
* Fix bug
* Fix lint
* Fix test
* Fix import
* Improve codes
Co-authored-by: 6543 <6543@obermui.de >
2022-03-29 22:16:31 +08:00
Lunny Xiao and wxiaoguang
76aa33d884
Move init repository related functions to modules ( #19159 )
...
* Move init repository related functions to modules
* Fix lint
* Use ctx but db.DefaultContext
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-03-29 15:23:45 +08:00
b06b9a056c
Move organization related structs into sub package ( #18518 )
...
* Move organization related structs into sub package
* Fix test
* Fix lint
* Move more functions into sub packages
* Fix bug
* Fix test
* Update models/organization/team_repo.go
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
* Apply suggestions from code review
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
* Fix fmt
* Follow suggestion from @Gusted
* Fix test
* Fix test
* Fix bug
* Use ctx but db.DefaultContext on routers
* Fix bug
* Fix bug
* fix bug
* Update models/organization/team_user.go
* Fix bug
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-03-29 14:29:02 +08:00
Lunny Xiao
54961f3ac9
Use goproxy.io instead of goproxy.cn ( #19242 )
2022-03-28 20:01:07 +03:00
Lunny Xiao and wxiaoguang
6526733a58
Let web and API routes have different auth methods group ( #19168 )
...
* remove the global methods but create dynamiclly
* Fix lint
* Fix windows lint
* Fix windows lint
* some improvements
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-03-28 12:46:28 +08:00
c29fbc6d23
Hide sensitive content on admin panel progress monitor ( #19218 )
...
Sanitize urls within git process descriptions.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2022-03-27 12:54:09 +01:00
Lunny Xiao
18033f49ba
Restrict email address validation ( #17688 )
...
This didn't follow the RFC but it's a subset of that. I think we should narrow the allowed chars at first and discuss more possibility in future PRs.
2022-03-14 18:39:54 +01:00
Lunny Xiao
49db87a035
Fix lfs bug ( #19072 )
...
* Fix lfs bug
2022-03-14 16:18:27 +01:00
Lunny Xiao
2448c5ad8b
Upgrading binding package ( #19034 )
...
Fix #18855
2022-03-09 18:06:58 +00:00
b24e8d38af
Support ignore all santize for external renderer ( #18984 )
...
* Support ignore all santize for external renderer
* Update docs
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io >
* Fix doc
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
2022-03-06 16:41:54 +08:00
Lunny Xiao
814750e647
Fix update hint bug ( #18996 )
2022-03-04 20:59:29 +00:00
Lunny Xiao and 6543
04971c33a3
Improve the deletion of issue ( #18945 )
...
Co-authored-by: 6543 <6543@obermui.de >
2022-03-02 18:38:56 +01:00
Lunny Xiao
38f6322164
Fix lfs management setting ( #18946 )
...
Fix #18782
2022-03-01 23:14:27 +00:00
Lunny Xiao
b75ad7b87f
Improve mirror iterator ( #18928 )
...
* Improve mirror iterator
* fix test
2022-02-28 20:41:06 +01:00
Lunny Xiao
59959ab222
Fix login with email panic when email is not exist ( #18941 )
2022-02-28 18:33:33 +01:00
Lunny Xiao and 6543
36d31d521d
Fix team management UI ( #18886 )
...
Co-authored-by: 6543 <6543@obermui.de >
2022-02-25 16:19:54 -05:00
Lunny Xiao
a5e8daee73
Fix migration v210 ( #18892 )
2022-02-25 15:04:59 +01:00
Lunny Xiao
6621710deb
Fix update user ( #18878 )
2022-02-24 19:29:10 +01:00
Lunny Xiao
f1b1472632
Fix ldap user sync missed email in email_address table ( #18786 )
...
* Fix ldap user sync missed email in email_address table
* Fix test
2022-02-24 14:13:59 +08:00
Lunny Xiao and techknowlogick
2b5e013430
Fix ldap edit bug ( #18856 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2022-02-22 17:07:04 -05:00
Lunny Xiao and zeripath
dc988eae0c
Fix bug for get user by email ( #18833 )
...
Co-authored-by: zeripath <art27@cantab.net >
2022-02-21 22:20:34 +08:00
Lunny Xiao
00be0c1b21
Fix login with email for ldap users ( #18800 )
...
`authenticator.Authenticate` has assume the login name is not an email, but `username` maybe an email. So when we find the user via email address, we should use `user.LoginName` instead of `username` which is an email address.
2022-02-20 10:28:58 +00:00
Lunny Xiao
931c2f40e7
Put buttons back in org dashboard ( #18817 )
...
Fix #18523
2022-02-19 12:08:12 +00:00
Lunny Xiao
a7b9d44d88
Fix problem when self-assign notification ( #18797 )
2022-02-18 14:06:57 +08:00
Lunny Xiao
397d2ac303
Move deletebeans into models/db ( #18781 )
2022-02-17 16:37:48 +08:00
Lunny Xiao
f48771ae78
Fix template bug of LFS lock ( #18784 )
2022-02-16 11:22:25 -05:00
Lunny Xiao and zeripath
5348e198db
Add example to render html files ( #18736 )
...
* Add example to render html files
* Use class in example
Co-authored-by: zeripath <art27@cantab.net >
2022-02-14 21:56:17 +08:00
Lunny Xiao and zeripath
08fe6f8c7e
Fix broken cancel button link on patch page ( #18718 )
...
* Fix broken cacnel button link on patch page
* remove treepath="patch" elsewhere too
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2022-02-14 09:18:55 +00:00
Lunny Xiao
581a563cac
Ignore the migrate if u2f_registration is not exist ( #18760 )
2022-02-14 08:13:17 +00:00
Lunny Xiao
1b1658d887
Fix isempty detection of git repository ( #18746 )
...
* Fix isempty detection of git repository
* Fix IsEmpty check
2022-02-14 00:01:23 +08:00