MadelineProtoDocs/docs/API_docs/constructors/account_password.md

49 lines
1.9 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: account.password
2018-12-26 02:56:50 +01:00
description: Password
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: account.password
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
2018-12-26 02:56:50 +01:00
Password
2018-04-01 13:19:25 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|has\_recovery|[Bool](../types/Bool.md) | Optional|Has recovery?|
|has\_secure\_values|[Bool](../types/Bool.md) | Optional|Has secure values?|
|has\_password|[Bool](../types/Bool.md) | Optional|Has password?|
|current\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|Current algo|
|srp\_B|[bytes](../types/bytes.md) | Optional|Srp b|
|srp\_id|[long](../types/long.md) | Optional|Srp ID|
|hint|[string](../types/string.md) | Optional|Hint|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Optional|Email unconfirmed pattern|
|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Yes|New algo|
|new\_secure\_algo|[SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) | Yes|New secure algo|
|secure\_random|[bytes](../types/bytes.md) | Yes|Secure random|
2018-04-01 13:19:25 +02:00
### Type: [account\_Password](../types/account_Password.md)
### Example:
```php
2018-12-26 02:56:50 +01:00
$account_password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'has_password' => Bool, 'current_algo' => PasswordKdfAlgo, 'srp_B' => 'bytes', 'srp_id' => long, 'hint' => 'string', 'email_unconfirmed_pattern' => 'string', 'new_algo' => PasswordKdfAlgo, 'new_secure_algo' => SecurePasswordKdfAlgo, 'secure_random' => 'bytes'];
2018-04-01 13:19:25 +02:00
```
Or, if you're into Lua:
2018-04-01 13:19:25 +02:00
```lua
2018-12-26 02:56:50 +01:00
account_password={_='account.password', has_recovery=Bool, has_secure_values=Bool, has_password=Bool, current_algo=PasswordKdfAlgo, srp_B='bytes', srp_id=long, hint='string', email_unconfirmed_pattern='string', new_algo=PasswordKdfAlgo, new_secure_algo=SecurePasswordKdfAlgo, secure_random='bytes'}
2018-04-01 13:19:25 +02:00
```