mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 14:19:45 +00:00
Start to implement data export
This commit is contained in:
@@ -178,4 +178,11 @@ pub fn reset_user_password(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
account_helper::destroy_password_reset_token_for_user(&user_id)?;
|
||||
|
||||
r.success("Password changed!")
|
||||
}
|
||||
|
||||
/// Export account's data
|
||||
pub fn export_data(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.need_user_password("password")?;
|
||||
|
||||
r.success("Go on")
|
||||
}
|
Reference in New Issue
Block a user