Skip to main content

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​

CodeTypeDescription
400RESET_REQUEST_MISSINGNo password reset is in progress.

References​