POST api/TwoFactor/CreateOtpForRemindPassword

Request Information

URI Parameters

None.

Body Parameters

CreateOtpForRemindPasswordRequest
NameDescriptionTypeAdditional information
UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1"
}

application/xml, text/xml

Sample:
<CreateOtpForRemindPasswordRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Request">
  <UserName>sample string 1</UserName>
</CreateOtpForRemindPasswordRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateOtpForRemindPasswordResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

OtpIdReference

string

None.

ReferenceCode

string

None.

RemainingSeconds

integer

None.

GsmNumber

string

None.

OtpCode

string

None.

Code

CreateTwoFactorSmsOtpResponseCode

None.

UserType

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "OtpIdReference": "sample string 2",
  "ReferenceCode": "sample string 3",
  "RemainingSeconds": 4,
  "GsmNumber": "sample string 5",
  "OtpCode": "sample string 6",
  "Code": 4000,
  "UserType": 1
}

application/xml, text/xml

Sample:
<CreateOtpForRemindPasswordResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Response">
  <Code>MaxOtpRequestExceededCode</Code>
  <GsmNumber>sample string 5</GsmNumber>
  <OtpCode>sample string 6</OtpCode>
  <OtpIdReference>sample string 2</OtpIdReference>
  <ReferenceCode>sample string 3</ReferenceCode>
  <RemainingSeconds>4</RemainingSeconds>
  <Success>true</Success>
  <UserType>1</UserType>
</CreateOtpForRemindPasswordResponse>