Class OneTimeCode
- Namespace
- Dynamicweb.Security.User
Management
- Assembly
- Dynamicweb.Core.dll
Represents the functionality to work with one-time codes.
- Inheritance
-
One
Time Code
- Inherited Members
Properties
Code
The one-time code.
Property Value
Expiration
The date and time when the code expires.
Property Value
Methods
Create()
Creates a new instance of the One
Returns
- One
Time Code The instance of the One
Time with randomly generated code.Code
EncryptCode()
Returns
GetCodeLifetime()
Gets the code lifetime in seconds.
Returns
- int
The code lifetime in seconds.
ValidateCode(string?)
Checks if the codeToVerify
is valid and not outdated.
Parameters
Returns
- bool
True
if the code is valid and not outdated, otherwiseFalse
.