mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 23:46:53 +00:00
Add json exp (#699)
* Add json exp * Add json exp and add gen jwt token * Gen seahub and notif jwt token * Add exp for gen jwt token * Delete gen_jwt_token API * Delete set exp to 72 hour --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -826,10 +826,6 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
|
||||
def search_files_by_path(self, repo_id, path, search_str):
|
||||
pass
|
||||
|
||||
@searpc_func("string", ["string", "string"])
|
||||
def generate_notif_server_jwt(self, repo_id, username):
|
||||
pass
|
||||
|
||||
#user management
|
||||
@searpc_func("int", ["string", "string", "int", "int"])
|
||||
def add_emailuser(self, email, passwd, is_staff, is_active):
|
||||
|
@@ -862,9 +862,6 @@ class SeafileAPI(object):
|
||||
def search_files_by_path (self, repo_id, path, search_str):
|
||||
return seafserv_threaded_rpc.search_files_by_path(repo_id, path, search_str)
|
||||
|
||||
def gen_notif_server_jwt (self, repo_id, username):
|
||||
return seafserv_threaded_rpc.generate_notif_server_jwt (repo_id, username)
|
||||
|
||||
seafile_api = SeafileAPI()
|
||||
|
||||
class CcnetAPI(object):
|
||||
|
Reference in New Issue
Block a user