> For the complete documentation index, see [llms.txt](https://skaleptyltd.gitbook.io/build-solution/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skaleptyltd.gitbook.io/build-solution/product-guides/system/edit-account.md).

# Edit Account

{% hint style="info" %}
Users can change their name, picture, and decide if they want to use an extra security layer called 2FA. They can also pick a new password by clicking the "Change Password" button.
{% endhint %}

{% tabs %}
{% tab title="Navigation to the page" %}

* Login as an Admin > Edit Account

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2FdBzKciwpw7kjliF05UaI%2Fimage.png?alt=media&amp;token=e1878c0c-2e04-4fb7-8e47-0d6056900dcb" alt=""><figcaption><p>Navigation to Edit Account</p></figcaption></figure>
{% endtab %}

{% tab title="Functionality" %}

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2FGw6m7Vz0wKuBOOuOHbbM%2Fimage.png?alt=media&amp;token=26c3d59e-892c-4cab-a54b-71cac1c06d33" alt=""><figcaption><p>Edit Account form</p></figcaption></figure>

When users go to the "Edit Account" page, they can modify their name, profile picture, and choose whether to turn on or off something called 2FA, which adds extra security. But they can't change their email. If users want to make a new password, they can do that by clicking a button that says 'Change Password'.

***

#### Change password

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2FtCHwtyUg2h6TCp1nnG6C%2Fimage.png?alt=media&amp;token=b5557461-2eb2-4796-b4de-4b78753c2e6a" alt=""><figcaption><p>Navigation to change password </p></figcaption></figure>

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2F9qvC3sUUBCokQxMlgUmh%2Fimage.png?alt=media&amp;token=f4e95e95-fdde-4831-89f7-c4ab691b7957" alt=""><figcaption><p>Change password form</p></figcaption></figure>

Change Password page validations are as below,

* Password length must be at least 8 characters.
* The new password should match the confirmed password.

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2FI88VpNdx95hj9tsNZ7OY%2Fimage.png?alt=media&amp;token=2345d054-0df5-4919-a295-c78786ab580c" alt=""><figcaption><p>Change password validation</p></figcaption></figure>

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2Fh3UBbLyaCgg9YmF5XfXW%2Fimage.png?alt=media&amp;token=d4ecc792-89b4-4bfa-9088-d37ff442f231" alt=""><figcaption><p>Change password validation</p></figcaption></figure>

A banner indicating the successful update of the password is displayed below. The user is then directed to the My Account page.

<figure><img src="https://1721684721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaF9cGX0SlYrvgRNs9Wi%2Fuploads%2FxmRiScuExkQITOea5A0J%2Fimage.png?alt=media&amp;token=2c831cc5-2553-4601-bdb1-9de4d819d59b" alt=""><figcaption><p>Change password success banner</p></figcaption></figure>
{% endtab %}

{% tab title="Database tables and queries" %}
Below are the related DB tables:

* users
  {% endtab %}

{% tab title="Paths" %}

#### Edit account function path

```
app/Http/Controllers/Admin/Account/AccountController.php->edit()
app/Http/Controllers/Admin/Account/AccountController.php->update()
```

***

#### Change password function path

```
app/Http/Controllers/Admin/Account/AccountController.php->change_password()
app/Http/Controllers/Admin/Account/AccountController.php->update_pass  word()
```

***

#### Image upload path

```
AWS S3 BUCKET - vconforsmb > user folde
```

{% endtab %}
{% endtabs %}
