1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 02:51:00 +00:00
Commit Graph

231 Commits

Author SHA1 Message Date
r350178982
2be71dd00b Update models.py 2025-04-08 17:05:48 +08:00
lian
04f948f7e4 send activity email when org register 2025-04-07 11:20:07 +08:00
seafile-dev
5eb303c76b
fix Use of a broken or weak cryptographic hashing (#7671)
Co-authored-by: lian <imwhatiam123@gmail.com>
2025-03-29 13:16:01 +08:00
awu0403
8151f7cf1c
fix clear text logging (#7640)
* fix clear text logging

* update

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
2025-03-24 11:01:49 +08:00
Michael An
acfc971ddd Merge branch '12.0' 2025-03-17 16:36:44 +08:00
Ranjiwei
88232cf064
handle-role-is-manual-set (#7371) 2025-01-16 10:00:49 +08:00
Ranjiwei
936c3cfbf6
update login simple-check by jwt (#6842)
* update login simple-check by jwt

* update
2024-10-15 13:52:23 +08:00
Michael An
fedfbf9bf4
change password check (#6656)
* change password check

* update

* Update views.py

* optimize-code

* remove min_len and level when frontend check password

* remove too short level

---------

Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
2024-08-28 17:52:54 +08:00
lian
7864383dc8 update migrations files 2024-08-27 14:18:27 +08:00
lian
316e403202 Merge branch '11.0' 2024-08-22 14:48:01 +08:00
lian
ff3d7b8bb7
fix encode error for shib institution attr (#6613) 2024-08-22 14:46:29 +08:00
Ranjiwei
9b3492088c
set-password-strength (#6477)
* set-password-strength

* update-uni-test

* Update views.py

* update

* remove userless code

* Update settings.py
2024-08-05 12:10:36 +08:00
lian
92445b16ef
shib second uid (#6175)
* second uid for shibboleth

* update test
2024-06-12 17:24:24 +08:00
Michael An
13bbc81efb fix print pdf have empty page 2024-01-08 17:35:58 +08:00
WJH
5e1b961b41
improve cas login (#5568) 2023-08-02 14:33:14 +08:00
WJH
f7495902db
improve shibboleth login (#5534)
* improve shibboleth login

* fix test
2023-07-07 17:33:40 +08:00
WJH
532fa5ef8c
Improve login and create user (#5458)
* add create oauth/ldap/saml user in UserManager

* improve admin add/import users

* improve dingtalk/weixin/work_weixin login/create user

* improve saml login/create user

* improve oauth login/create user

* login ldap user in seahub

* improve invite user

* fix code

* fix github test action

* fix test

* fix saml login

* optimize code

* specify the version of python-ldap

* fix code

* improve code

* add get_old_user

* optimize oauth login code

* optimize code

* remove LDAP_USER_UNIQUE_ID

* remove test_primary_id

* improve authenticate user

* improve saml login

* optimize code
2023-06-19 13:06:15 +08:00
lian
81ad006b91 makemigrations 2023-06-13 13:32:23 +08:00
lian
f365f2b342 django 4.2 2023-06-12 09:53:31 +08:00
王健辉
0cf73131f5
fix shibboleth update_user_quota (#5242) 2022-08-15 11:37:15 +08:00
王健辉
9dac22daec remove *.mo files 2021-09-23 18:24:34 +08:00
王健辉
e805feca95 upgrade django to 3.2 2021-09-22 10:41:26 +08:00
王健辉
05a55b38c4 fix django2 syntax 2021-04-21 23:38:53 +08:00
lian
33760eb644 Merge branch '7.1' into 8.0 2021-03-01 11:21:56 +08:00
lian
032319e891
shib user (#4820)
use username in lowercase when check if user alread exists

Co-authored-by: lian <lian@seafile.com>
2021-02-23 15:17:42 +08:00
lian
c0669d4ad8 Merge branch '7.1' into master 2020-11-25 15:05:57 +08:00
lian
2248ebc50b
update search user logic when login via shib (#4708)
Co-authored-by: lian <lian@seafile.com>
2020-11-02 13:50:40 +08:00
lian
33a9849555 Merge branch '7.1' into master 2020-10-19 10:43:45 +08:00
lian
62c2f0bc9e
update for dev env (#4690)
Co-authored-by: lian <lian@seafile.com>
2020-10-10 16:05:33 +08:00
lian
57c8fa967c
custom shibboleth get user role (#4689)
Co-authored-by: lian <lian@seafile.com>
2020-10-10 15:40:57 +08:00
lian
141121f5af Merge branch '7.1' into master 2020-09-10 16:37:31 +08:00
lian
949bdce5c1
encode("iso-8859-1") for shibboleth login (#4667)
Co-authored-by: lian <lian@seafile.com>
2020-09-09 10:36:27 +08:00
王健辉
21756be27c
upgrade django to 2.2 (#4620) 2020-07-27 14:59:18 +08:00
llj
389f8befee
[terms] rewrote 'terms view' with react (#4589) 2020-06-15 16:27:00 +08:00
lian
9500ac647a Merge branch '7.0' 2020-02-28 13:00:23 +08:00
lian
28bd2c4f87 fix bug when user login via shib (#4416) 2020-01-15 14:06:46 +08:00
王健辉
5dd0586c2b use new sys_search_users page (#4400) 2020-01-09 17:41:01 +08:00
lian
dcb871c957 Merge branch '7.0' 2020-01-06 16:25:55 +08:00
lian
69a482df9f only check local user when login via shib (#4357) 2019-12-13 21:44:54 +08:00
llj
c399879011 [terms & conditions] accept: rewrote it with React (#4279) 2019-11-21 11:34:08 +08:00
王健辉
d2555ab137 use customized constance (#4191) 2019-10-25 15:01:41 +08:00
sniper-py
99a9ece04e Python3 master (#4076)
* delete thridpart/social_django

* delete social_django in seahub/urls.py

* delete social_django in seahub/settings.py

* delete seahub/notifications/management/commands/send_wxwork_notices.py

* delete social_django in code annotation

* delete seahub/social_core

* delete tests/seahub/social_core

* delete social_core in seahub/urls.py

* delete social_core in seahub/settings.py

* change app_label to auth in SocialAuthUser model

* 2to3 asserts

* 2to3 basestring

* 2to3 dict

* 2to3 except

* 2to3 filter

* 2to3 future

* 2to3 has_key

* 2to3 idioms

* 2to3 import

* 2to3 imports

* 2to3 long

* 2to3 map

* 2to3 next

* 2to3 numliterals

* 2to3 print

* 2to3 raise

* 2to3 raw_input

* 2to3 reduce

* 2to3 reload

* 2to3 set_literal

* 2to3 unicode

* 2to3 urllib

* 2to3 ws_comma

* 2to3 xrange

* 2to3 zip

* add pymysql in __init__.py

* fix encode and decode in seahub/cconvert.py

* fix seafserv_rpc.is_passwd_set in seahub/views/__init__.py

* fix smart_unicode to smart_text

* fix force_unicode to force_text

* delete seaserv.get_session_info

* delete seaserv.ccnet_rpc

* fix indent error in seahub/auth/middleware.py

* update dev-requirements

* update test-requirements

* update requirements

* fix StringIO to BytesIO in thumbnail

* fix seaserv.list_inner_pub_repos to seafile_api.get_inner_pub_repo_list

* fix seaserv.list_org_inner_pub_repos to seafile_api.list_org_inner_pub_repos

* add logger in seahub/utils/__init__.py

* fix sort cmp in seahub/views/__init__.py

* fix sort cmp in seahub/base/management/commands/export_file_access_log.py

* fix sort cmp in seahub/api2/endpoints/repo_trash.py

* fix sort cmp in seahub/api2/endpoints/shared_repos.py

* fix sort cmp in seahub/api2/endpoints/shared_folders.py

* fix sort cmp in seahub/wiki/views.py

* fix sort cmp in seahub/api2/endpoints/wiki_pages.py

* fix sort cmp in seahub/api2/endpoints/group_libraries.py

* fix sort cmp in seahub/base/models.py

* fix sort cmp in seahub/api2/endpoints/upload_links.py

* fix sort cmp in seahub/views/ajax.py

* fix sort cmp in seahub/api2/views.py

* fix sort cmp in seahub/views/wiki.py

* fix sort cmp in seahub/api2/endpoints/repos.py

* fix sort cmp in seahub/api2/endpoints/starred_items.py

* fix sort cmp in seahub/views/file.py

* fix sort cmp in seahub/api2/endpoints/dir.py

* fix sort cmp in seahub/api2/endpoints/share_links.py

* fix cmp to cmp_to_key in seahub/api2/endpoints/admin/device_trusted_ip.py

* fix cmp to cmp_to_key in tests/api/endpoints/admin/test_device_trusted_ip.py

* delete encode('utf-8') in seafile_api.list_dir_by_commit_and_path

* delete encode('utf-8') in is_file_starred

* delete encode('utf-8') in seafile_api.list_dir_by_path

* delete path.encode('utf-8') in seahub/views/file.py

* fix os.write to add encode('utf-8')

* add encode('utf-8') for hashlib

* add encode('utf-8') for hmac

* fix with open(file, 'wb') for binary file

* fix encode and decode in seahub/utils/hasher.py

* fix next in thirdpart/shibboleth/views.py

* fix next in seahub/profile/views.py

* fix next in seahub/notifications/views.py

* fix next in seahub/institutions/views.py

* fix next in seahub/options/views.py

* fix next in seahub/share/views.py

* fix next in seahub/avatar/views.py

* fix next in seahub/views/__init__.py

* fix next in seahub/group/views.py

* fix next in seahub/views/wiki.py

* fix next in seahub/views/sysadmin.py

* fix next in seahub/views/file.py

* fix string.lowercase to string.ascii_lowercase in test

* fix open file add 'rb' in test

* fix self.user.username in test

* add migrations in file_participants

* fix list_org_inner_pub_repos to list_org_inner_pub_repos_by_owner

* fix from seaserv import is_passwd_set to seafile_api.is_password_set

* fix assert bytes resp.content in test

* fix seafile_api.get_inner_pub_repo_list to seafile_api.list_inner_pub_repos_by_owner

* fix seafile_api.is_passwd_set to seafile_api.is_password_set

* fix AccountsApiTest assert length

* rewrite sort_devices cmp to operator.lt

* fix bytes + str in seahub/api2/views.py

* fix assert bytes resp.content in test

* fix hashlib encode in seahub/thirdpart/registration/models.py

* change app_label to base in SocialAuthUser

* fix base64 encode in seahub/base/database_storage/database_storage.py

* fix assert bytes resp.content

* remove path.decode in def mkstemp()

* remove path.decode in FpathToLinkTest

* remove str decode in FileTagTest

* remove mock_write_xls.assert_called_once() in SysUserAdminExportExcelTest

* fix urllib assert in FilesApiTest

* fix link fields in FileCommentsTest

* fix get_related_users_by_repo()

* fix assert list in GetRepoSharedUsersTest

* fix create user in AccountTest

* fix repeated key in dict seahub/api2/views.py

* add drone.yml

* update nginx conf in test

* update test conf in test

* update dist and push after test success

* update drone conf to dist and push

* fix assert in BeSharedReposTest

* fix seafile_api.list_org_inner_pub_repos_by_owner(org_id, username) to seafile_api.list_org_inner_pub_repos(org_id)

* fix seafile_api.list_inner_pub_repos_by_owner(username) to seafile_api.get_inner_pub_repo_list()

* update pyjwt requirement

* update dist branch in drone

* add SKIP in dist and push

* fix StringIO to BytesIO in seahub/avatar/models.py

* fix if org_id > 0 to if org_id and org_id > 0

* remove payment

* fix StringIO to BytesIO in seahub/base/database_storage/database_storage.py

* fix send_message to seafile_api.publish_event in seahub/drafts/utils.py

* fix send_message to seafile_api.publish_event in seahub/api2/views.py

* fix send_message to seafile_api.publish_event in seahub/api2/endpoints/repos.py

* fix send_message to seafile_api.publish_event in seahub/views/file.py

* fix send_message to seafile_api.publish_event in seahub/utils/__init__.py

* fix image_file.read encode in seahub/base/database_storage/database_storage.py

* fix DatabaseStorageTest

* remove .travis.yml

* drone branch include master
2019-09-11 11:46:43 +08:00
zhengxie
fd21d7838e Update social_django and profile 2019-01-30 17:36:46 +08:00
zhengxie
0efcbb10a3 [social auth & notification] Add wechat work notification 2019-01-28 11:36:00 +08:00
zhengxie
a45e6b5cdd [shibboleth] Only apply middleware to certain url 2018-09-15 16:13:07 +08:00
zhengxie
70ff50b30f [shibboleth] Fix multiple emails sending issue.
issue: https://forum.seafile.com/t/seahub-not-sending-mail-invitations/7150/6
2018-09-15 11:32:06 +08:00
llj
435ced05f5 [register] redesigned it 2018-06-14 16:51:13 +08:00
ilearnit
116f6c45d8 fix terms 2018-06-09 15:58:55 +08:00
ilearnit
3cc68f5b6d Add terms to web settings 2018-06-09 11:17:04 +08:00
zhengxie
fd1b30d160 Add cas login/logout 2018-06-04 14:07:19 +08:00