VerifyEmail()

Verifies a users' email

Description

Used to complete the verification process.

Package Details

Interface

IAccountManager

Syntax

AccountManager.VerifyEmail(int userId, string confirmationCode)

Returns

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

API

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

Parameters

  • userId: [Integer] - User id

  • code: [String] - Confirmation code

Returns

Returns the Status of the Email Verification. One of the following values:

  • Success

  • Invalid

  • Expired

Example

var status = await _accountManager.VerifyEmail(userid, confirmationCode);

Caveats

Only accessible within the MTOA environment.