mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-16 23:29:25 +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:
@@ -4643,22 +4643,6 @@ seafile_search_files_by_path (const char *repo_id, const char *path, const char
|
||||
return g_list_reverse (ret);
|
||||
}
|
||||
|
||||
char *
|
||||
seafile_generate_notif_server_jwt (const char *repo_id, const char *username, GError **error)
|
||||
{
|
||||
if (!repo_id || !username) {
|
||||
g_set_error (error, SEAFILE_DOMAIN, SEAF_ERR_BAD_ARGS, "Argument should not be null");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *token = seaf_gen_notif_server_jwt (repo_id, username);
|
||||
if (!token) {
|
||||
g_set_error (error, SEAFILE_DOMAIN, SEAF_ERR_INTERNAL,
|
||||
"Failed to generate jwt token");
|
||||
}
|
||||
return token;
|
||||
}
|
||||
|
||||
/*RPC functions merged from ccnet-server*/
|
||||
int
|
||||
ccnet_rpc_add_emailuser (const char *email, const char *passwd,
|
||||
|
Reference in New Issue
Block a user