Show / Hide Table of Contents

Class ProfileController

Inheritance
object
ProfileController
Implements
IProfileAppService
IApplicationService
IRemoteService
Namespace: Volo.Abp.Account
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
Type Name Description
IProfileAppService profileAppService

Properties

ProfileAppService

Declaration
protected IProfileAppService ProfileAppService { get; }
Property Value
Type Description
IProfileAppService

Methods

CanEnableTwoFactorAsync()

Declaration
[HttpGet]
[Route("can-enable-two-factor")]
public Task<bool> CanEnableTwoFactorAsync()
Returns
Type Description
Task<bool>

ChangePasswordAsync(ChangePasswordInput)

Declaration
[HttpPost]
[Route("change-password")]
public virtual Task ChangePasswordAsync(ChangePasswordInput input)
Parameters
Type Name Description
ChangePasswordInput input
Returns
Type Description
Task

GetAsync()

Declaration
[HttpGet]
public virtual Task<ProfileDto> GetAsync()
Returns
Type Description
Task<ProfileDto>

GetTimezonesAsync()

Declaration
[HttpGet]
[Route("timezones")]
public virtual Task<List<NameValue>> GetTimezonesAsync()
Returns
Type Description
Task<List<NameValue>>

GetTwoFactorEnabledAsync()

Declaration
[HttpGet]
[Route("two-factor-enabled")]
public virtual Task<bool> GetTwoFactorEnabledAsync()
Returns
Type Description
Task<bool>

SetTwoFactorEnabledAsync(bool)

Declaration
[HttpPost]
[Route("set-two-factor-enabled")]
public virtual Task SetTwoFactorEnabledAsync(bool enabled)
Parameters
Type Name Description
bool enabled
Returns
Type Description
Task

UpdateAsync(UpdateProfileDto)

Declaration
[HttpPut]
public virtual Task<ProfileDto> UpdateAsync(UpdateProfileDto input)
Parameters
Type Name Description
UpdateProfileDto input
Returns
Type Description
Task<ProfileDto>

Implements

IProfileAppService
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
In this article
Back to top Powered by Volosoft