MadelineProtoDocs/old_docs/API_docs_v2/constructors/account.password.md

42 lines
976 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: account.password
description: Configuration for two-factor authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_password.html
---
# Constructor: account.password
[Back to constructors index](index.md)
Configuration for two-factor authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|current\_salt|[bytes](../types/bytes.md) | Yes|
|new\_salt|[bytes](../types/bytes.md) | Yes|
|hint|[string](../types/string.md) | Yes|Text hint for the password|
### Type: [account.Password](../types/account.Password.md)
### Example:
```php
$account.password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_salt' => 'bytes', 'hint' => 'string'];
```
Or, if you're into Lua:
```lua
account.password={_='account.password', current_salt='bytes', new_salt='bytes', hint='string'}
```