# Reset password

## Implement

Add the `ServerHostingPasswordResetTrait` to your Page class:

<figure><img src="https://4059027548-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnJHcdSq7NNv7Ws704nzw%2Fuploads%2F7jb2BlRsKDhXMvzUwcDH%2Fimage.png?alt=media&#x26;token=a69ce4c0-a94c-4acf-adab-b8961c39c37c" alt=""><figcaption></figcaption></figure>

### Action handler

Just implement the `resetPassword` function just like every other action. You can access the password from the user via `$request->get('newPassword')` and perform the password reset action.
