1.9 KiB
1.9 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
Configuration for two-factor authorization
Attributes:
Name | Type | Required | Description |
---|---|---|---|
has_recovery | Bool | Optional | Whether the user has a recovery method configured |
has_secure_values | Bool | Optional | Whether telegram passport is enabled |
current_salt | bytes | Yes | Current salt |
new_salt | bytes | Yes | New salt |
new_secure_salt | bytes | Yes | New secure salt |
secure_random | bytes | Yes | Secure random string |
hint | string | Yes | Text hint for the password |
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', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'current_salt' => 'bytes', 'new_salt' => 'bytes', 'new_secure_salt' => 'bytes', 'secure_random' => 'bytes', 'hint' => 'string', 'email_unconfirmed_pattern' => 'string'];
Or, if you're into Lua:
account.password={_='account.password', has_recovery=Bool, has_secure_values=Bool, current_salt='bytes', new_salt='bytes', new_secure_salt='bytes', secure_random='bytes', hint='string', email_unconfirmed_pattern='string'}