1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 06:36:55 +01:00
MadelineProto/docs/TD_docs/constructors/passwordState.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: passwordState
description: Represents current state of the two-step verification
---
## Constructor: passwordState
[Back to constructors index](index.md)
Represents current state of the two-step verification
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|has\_password|[Bool](../types/Bool.md) | Yes|Is password set up|
|password\_hint|[string](../types/string.md) | Yes|Hint on password, can be empty|
|has\_recovery\_email|[Bool](../types/Bool.md) | Yes|Is recovery email set up|
|unconfirmed\_recovery\_email\_pattern|[string](../types/string.md) | Yes|Pattern of email to which confirmation mail was sent|
### Type: [PasswordState](../types/PasswordState.md)
### Example:
```
$passwordState = ['_' => 'passwordState', 'has_password' => Bool, 'password_hint' => string, 'has_recovery_email' => Bool, 'unconfirmed_recovery_email_pattern' => string, ];
```
Or, if you're into Lua:
```
passwordState={_='passwordState', has_password=Bool, password_hint=string, has_recovery_email=Bool, unconfirmed_recovery_email_pattern=string, }
```