You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now there is no way to manage users and snippets. All operations are performed through working with the database
Proposed solution
Create a simple admin panel interface. Don't use SPA (React), try pug templates. The section should be located on the path /admin and contain two pages /admin/users, /admin/snippets with the output of these sections. For users add a new column-flag whether the user is an administrator or not
The text was updated successfully, but these errors were encountered:
- The migration file has been added, the isAdmin column has been added to the users table.
- The migration file implements the logic of installing the admin for the email specified in the environment variable ADMIN_EMAIL.
- The admin module has been added.
- Added a controller to get a user template.
- In the user creation method, the logic of installing the admin during registration has been added.
На данном этапе:
- Добавлен файл миграции, добавлена колонка isAdmin в таблицу users.
- В файле миграции реализована логика установки админа для емейла указанного в переменной окружения ADMIN_EMAIL.
- Добавлен admin module.
- Добавлен контроллер для получения шаблона пользователей.
- В методе создания пользователя добавлена логика установки админа при регистрации.
Problem description
Now there is no way to manage users and snippets. All operations are performed through working with the database
Proposed solution
Create a simple admin panel interface. Don't use SPA (React), try pug templates. The section should be located on the path
/admin
and contain two pages/admin/users
,/admin/snippets
with the output of these sections. For users add a new column-flag whether the user is an administrator or notThe text was updated successfully, but these errors were encountered: