---
schema_version: "1"
id: e3490f500592ace1b98b67e7d52e080482eda6ba82f4418529f9e80674951d5b
title: ResetPasswordResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_System_ResetPasswordResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_ResetPasswordResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3f0374f7c71631c93b6ec435ef1d70f7ff1afb6b37056e8ec1809a9be030fba1
description: Represents the result of a password reset.Returns the password generated by the System.resetPassword method call.
---
# ResetPasswordResult Class

Represents the result of a password reset.

## Namespace

[System](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_System.htm "The System namespace provides classes and methods for core Apex functionality.")

## ResetPasswordResult Methods

The following are instance methods for ResetPasswordResult.

- **[getPassword()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_ResetPasswordResult.htm#apex_System_ResetPasswordResult_getPassword)**  
    Returns the password generated by the System.resetPassword method call.

### getPassword()

Returns the password generated by the System.resetPassword method call.

#### Signature

public String getPassword()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")