MadelineProtoDocs/old_docs/API_docs_v66/constructors/account.password.md
2019-12-27 18:46:25 +01:00

1.4 KiB

title description image redirect_from
account.password Configuration for two-factor authorization https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/account_password.html

Constructor: account.password

Back to constructors index

Configuration for two-factor authorization

Attributes:

Name Type Required Description
current_salt bytes Yes Current salt
new_salt bytes Yes New salt
hint string Yes Text hint for the password
has_recovery Bool Yes Has recovery?
email_unconfirmed_pattern string Yes A password recovery email with the specified pattern is still awaiting verification

Type: account.Password

Example:

$account.password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_salt' => 'bytes', 'hint' => 'string', 'has_recovery' => Bool, 'email_unconfirmed_pattern' => 'string'];

Or, if you're into Lua:

account.password={_='account.password', current_salt='bytes', new_salt='bytes', hint='string', has_recovery=Bool, email_unconfirmed_pattern='string'}