mirror of
https://github.com/bitwarden/mobile
synced 2025-12-24 12:13:18 +00:00
Added account deletion feature on settings (#1621)
* Added account deletion feature on settings * Disabled using Microsoft.AppCenter.Crashes for FDroid * Moved drawable on Android.csproj to be with the others Co-authored-by: Federico Maccaroni <fmaccaroni@bitwarden.com>
This commit is contained in:
committed by
GitHub
parent
833103b2a0
commit
9fdf2ada6f
@@ -61,6 +61,7 @@ namespace Bit.Core.Abstractions
|
||||
Task PutDeviceTokenAsync(string identifier, DeviceTokenRequest request);
|
||||
Task PostEventsCollectAsync(IEnumerable<EventRequest> request);
|
||||
Task PutUpdateTempPasswordAsync(UpdateTempPasswordRequest request);
|
||||
Task DeleteAccountAsync(DeleteAccountRequest request);
|
||||
Task<OrganizationKeysResponse> GetOrganizationKeysAsync(string id);
|
||||
Task<OrganizationAutoEnrollStatusResponse> GetOrganizationAutoEnrollStatusAsync(string identifier);
|
||||
Task PutOrganizationUserResetPasswordEnrollmentAsync(string orgId, string userId,
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace Bit.Core.Abstractions
|
||||
Task<bool> ShowDialogAsync(string text, string title = null, string confirmText = null,
|
||||
string cancelText = null, string type = null);
|
||||
Task<bool> ShowPasswordDialogAsync(string title, string body, Func<string, Task<bool>> validator);
|
||||
Task<(string password, bool valid)> ShowPasswordDialogAndGetItAsync(string title, string body, Func<string, Task<bool>> validator);
|
||||
void ShowToast(string type, string title, string text, Dictionary<string, object> options = null);
|
||||
void ShowToast(string type, string title, string[] text, Dictionary<string, object> options = null);
|
||||
bool SupportsFido2();
|
||||
|
||||
7
src/Core/Models/Request/DeleteAccountRequest.cs
Normal file
7
src/Core/Models/Request/DeleteAccountRequest.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class DeleteAccountRequest
|
||||
{
|
||||
public string MasterPasswordHash { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -195,6 +195,11 @@ namespace Bit.Core.Services
|
||||
request, true, false);
|
||||
}
|
||||
|
||||
public Task DeleteAccountAsync(DeleteAccountRequest request)
|
||||
{
|
||||
return SendAsync<DeleteAccountRequest, object>(HttpMethod.Delete, "/accounts", request, true, false);
|
||||
}
|
||||
|
||||
public Task PostConvertToKeyConnector()
|
||||
{
|
||||
return SendAsync<object, object>(HttpMethod.Post, "/accounts/convert-to-key-connector", null, true, false);
|
||||
|
||||
Reference in New Issue
Block a user