account.declinePasswordReset
Abort a pending 2FA password reset, see here for more info »
func (c *Client) AccountDeclinePasswordReset(ctx context.Context) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountDeclinePasswordReset(ctx)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
This method takes no parameters.
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | RESET_REQUEST_MISSING | No password reset is in progress. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.declinePasswordReset#4c9409f6