Class ProfileController
Inheritance
ProfileController
Implements
IApplicationService
IRemoteService
Assembly: Volo.Abp.Account.Pro.Public.HttpApi.dll
Syntax
[Area("account")]
[Route("/api/account/my-profile")]
public class ProfileController : AbpControllerBase, IProfileAppService, IApplicationService, IRemoteService
Constructors
ProfileController(IProfileAppService)
Declaration
public ProfileController(IProfileAppService profileAppService)
Parameters
Properties
ProfileAppService
Declaration
protected IProfileAppService ProfileAppService { get; }
Property Value
Methods
CanEnableTwoFactorAsync()
Declaration
[HttpGet]
[Route("can-enable-two-factor")]
public Task<bool> CanEnableTwoFactorAsync()
Returns
Declaration
[HttpPost]
[Route("change-password")]
public virtual Task ChangePasswordAsync(ChangePasswordInput input)
Parameters
Returns
GetAsync()
Declaration
[HttpGet]
public virtual Task<ProfileDto> GetAsync()
Returns
GetTimezonesAsync()
Declaration
[HttpGet]
[Route("timezones")]
public virtual Task<List<NameValue>> GetTimezonesAsync()
Returns
GetTwoFactorEnabledAsync()
Declaration
[HttpGet]
[Route("two-factor-enabled")]
public virtual Task<bool> GetTwoFactorEnabledAsync()
Returns
SetTwoFactorEnabledAsync(bool)
Declaration
[HttpPost]
[Route("set-two-factor-enabled")]
public virtual Task SetTwoFactorEnabledAsync(bool enabled)
Parameters
Type |
Name |
Description |
bool |
enabled |
|
Returns
UpdateAsync(UpdateProfileDto)
Declaration
[HttpPut]
public virtual Task<ProfileDto> UpdateAsync(UpdateProfileDto input)
Parameters
Returns
Implements
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService