1
0
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:
2020-07-13 18:56:36 +02:00
parent ded88474d5
commit f21636aa4e
5 changed files with 35 additions and 1 deletions

View File

@@ -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")
}