> For the complete documentation index, see [llms.txt](https://docs.iexexchanger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iexexchanger.com/help-center/reshenie-problem/spravochniki/kak-vosstanovit-dostup-v-administrativnuyu-panel.md).

# Как восстановить доступ в административную панель?

Если вы забыли пароль от административной панели iEXExchanger, сначала рекомендуется воспользоваться стандартной процедурой восстановления доступа.

### Стандартный способ восстановления

Откройте страницу восстановления доступа:

```
https://ваш_домен/auth/reset-credentials
```

Следуйте инструкциям на экране для сброса пароля.

{% hint style="info" %}
Если у вас отсутствует доступ к электронной почте администратора или стандартная процедура восстановления недоступна, воспользуйтесь способом восстановления через SSH, описанным ниже.
{% endhint %}

### Восстановление доступа через SSH

Данный способ позволяет создать новый пароль администратора непосредственно через сервер.

{% content-ref url="/pages/cCEoFDjTDIufy3NUEakd" %}
[Подключение к серверу по SSH](/help-center/upravlenie-serverom/podklyuchenie-k-serveru-po-ssh.md)
{% endcontent-ref %}

{% stepper %}
{% step %}

### Подключитесь к серверу

Подключитесь к серверу по SSH под пользователем Backend-проекта.

Например: `ssh имя_пользователя@IP_СЕРВЕРА`

{% hint style="warning" %}
Рекомендуется использовать пользователя Backend-проекта, а не пользователя root.
{% endhint %}
{% endstep %}

{% step %}

### Перейдите в директорию Backend-проекта

Выполните команду:

```
cd /var/www/имя_пользователя_backend/data/www/app.ваш_домен
```

Замените путь на фактический путь к вашему Backend-проекту.
{% endstep %}

{% step %}

### Создайте новый пароль администратора

Выполните команду:

```shellscript
NEW_PASS="$(openssl rand -base64 24 | tr -d '\n' | tr '/+' 'Aa' | cut -c1-16)"

php artisan iex:resetpass --pass="$NEW_PASS"

echo ""
echo "================================="
echo "Логин: admin"
echo "Пароль: $NEW_PASS"
echo "================================="
```

{% endstep %}

{% step %}

### Сохраните новый пароль

После успешного выполнения команды в терминале появятся новые данные для входа.

Пример:&#x20;

```
=================================
Ваша почта: ***
Пароль: A7dK92sLmQpX4zR1
=================================
```

Используйте указанный пароль для входа в административную панель.

{% hint style="danger" %}
Обязательно сохраните новый пароль сразу после его генерации.

После закрытия терминала посмотреть сгенерированный пароль повторно будет невозможно. При необходимости вы можете повторно выполнить команду и создать новый пароль.
{% endhint %}
{% endstep %}

{% step %}

### Завершение восстановления

После получения нового пароля откройте административную панель:

```
https://app.ваш_домен/admin
```

После успешного входа рекомендуется изменить пароль на собственный через настройки профиля администратора.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.iexexchanger.com/help-center/reshenie-problem/spravochniki/kak-vosstanovit-dostup-v-administrativnuyu-panel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
