Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Verifies a users' email address

Description

When an external user enrolls to the platform, an email is sent to them with a verification code. Once the user clicks on the link provided in the email they become a verified user.

Package Details

Interface

IAccountManager

Syntax

AccountManager.SetUserAsVerified(int userId)

Returns

EmailVerificationStatus
enum EmailVerificationStatus (Success = 1, Invalid = 2, Expired = 3)

API

[POST] /api/v1/account/complete-email-verification

Parameters

  • id: the users' id.

  • code: value for the confirmation code.

Returns

Status 200 OK - Email verification status.

  • Success

  • Invalid

  • Expired

Example

await _accountManager.SetUserAsVerified(CurrentUser.Id);

Caveats

Only accessible within the MTOA environment.

  • No labels