account.confirmPasswordEmail #

Verify an email to use as 2FA recovery method.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.confirmPasswordEmail#8fdf1920 code:string = Bool;

Parameters #

NameTypeDescription
codestringThe phone code that was received after setting a recovery email

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CODE_INVALIDCode invalid.
400EMAIL_HASH_EXPIREDEmail hash expired.

Two-factor authentication #

How to login to a user's account if they have enabled 2FA, how to change password.