1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-08 02:38:54 +00:00

Add upgrade repo enc algo RPC (#743)

* Add upgrade repo enc algo RPC

* Add test upgrade repo enc algo

* Add test upgrade repo enc algo

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
feiniks
2025-03-19 11:31:05 +08:00
committed by GitHub
parent 7753e8e02a
commit 24b61c929c
9 changed files with 308 additions and 72 deletions

View File

@@ -640,6 +640,12 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
pass
change_repo_passwd = seafile_change_repo_passwd
# Upgrade repo enc algorithm
@searpc_func("int", ["string", "string", "string", "string", "string"])
def seafile_upgrade_repo_enc_algorithm (repo_id, user, passwd, pwd_hash_algo, pwd_hash_params):
pass
upgrade_repo_enc_algorithm = seafile_upgrade_repo_enc_algorithm
# Clean trash
@searpc_func("int", ["string", "int"])
def clean_up_repo_history(repo_id, keep_days):

View File

@@ -72,6 +72,10 @@ class SeafileAPI(object):
def change_repo_passwd(self, repo_id, old_passwd, new_passwd, user):
return seafserv_threaded_rpc.change_repo_passwd(repo_id, old_passwd,
new_passwd, user)
def upgrade_repo_enc_algorithm (self, repo_id, user, passwd, pwd_hash_algo, pwd_hash_params):
return seafserv_threaded_rpc.upgrade_repo_enc_algorithm (repo_id, user, passwd,
pwd_hash_algo, pwd_hash_params)
def check_passwd(self, repo_id, magic):
return seafserv_threaded_rpc.check_passwd(repo_id, magic)