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
EmailVerificationStatusenum 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.