My Project 1.0
Open Source Encrypted Vault Storage
Loading...
Searching...
No Matches
AccountController Class Reference
Inheritance diagram for AccountController:
Collaboration diagram for AccountController:

Public Member Functions

 AccountController (IAccountService accountService, IUserActivityRepository activityRepository)
async Task< IActionResult > GetProfile ()
 Gets the profile information of the currently authenticated user.
async Task< IActionResult > UpdatePassword ([FromBody] UpdatePasswordRequestDto passwordDto)
 Updates the user's login password after verifying their current password.
async Task< IActionResult > UpdateMasterPassword ([FromBody] UpdateMasterPasswordRequestDto request)
 Updates the user's master password after verifying their current password and receiving re-encrypted vault items.
async Task< IActionResult > GetRecentActivity ([FromQuery] int limit=10)
 Gets recent user activities for the current user.
async Task< IActionResult > Disable2Fa ()
 Disables two-factor authentication for the current user.
async Task< IActionResult > RegenerateRecoveryCodes ()
 Regenerates new recovery codes for the current user.

Detailed Description

Definition at line 4 of file AccountController.cs.

Constructor & Destructor Documentation

◆ AccountController()

AccountController.AccountController ( IAccountService accountService,
IUserActivityRepository activityRepository )
inline

Definition at line 9 of file AccountController.cs.

Member Function Documentation

◆ Disable2Fa()

async Task< IActionResult > AccountController.Disable2Fa ( )
inline

Disables two-factor authentication for the current user.

Returns

Definition at line 108 of file AccountController.cs.

◆ GetProfile()

async Task< IActionResult > AccountController.GetProfile ( )
inline

Gets the profile information of the currently authenticated user.

Returns

Definition at line 21 of file AccountController.cs.

◆ GetRecentActivity()

async Task< IActionResult > AccountController.GetRecentActivity ( [FromQuery] int limit = 10)
inline

Gets recent user activities for the current user.

Parameters
limit
Returns

Definition at line 86 of file AccountController.cs.

◆ RegenerateRecoveryCodes()

async Task< IActionResult > AccountController.RegenerateRecoveryCodes ( )
inline

Regenerates new recovery codes for the current user.

Returns

Definition at line 125 of file AccountController.cs.

◆ UpdateMasterPassword()

async Task< IActionResult > AccountController.UpdateMasterPassword ( [FromBody] UpdateMasterPasswordRequestDto request)
inline

Updates the user's master password after verifying their current password and receiving re-encrypted vault items.

Parameters
request
Returns

Definition at line 62 of file AccountController.cs.

◆ UpdatePassword()

async Task< IActionResult > AccountController.UpdatePassword ( [FromBody] UpdatePasswordRequestDto passwordDto)
inline

Updates the user's login password after verifying their current password.

Parameters
passwordDto
Returns

Definition at line 38 of file AccountController.cs.


The documentation for this class was generated from the following file: