login form okie

This commit is contained in:
2026-07-01 15:40:46 +07:00
parent e9909784c7
commit ba587a40cb
107 changed files with 5601 additions and 33 deletions
+33
View File
@@ -370,3 +370,36 @@ If you want to create new custom block types (e.g., custom slider, doctor list,
<script th:src="@{/js/manage/editor-plugins/video-embed-plugin.js}"></script>
```
5. The initialization logic in [editor-config.js](file:///c:/Users/laptop01/Documents/sisvietnamvn_01/sisvietnamvn_main/src/main/resources/static/js/manage/editor-config.js) will automatically scan `window.SISEditorPlugins` and register them.
## User Management & Profiles
We have implemented a comprehensive User Management system in the Admin Dashboard, located under the **Users** menu. This allows administrators to manage all registered accounts on the platform.
### 1. How to Run and Access
1. Start your Oracle database or ensure it is accessible.
2. Run the application in development mode:
```powershell
./gradlew bootRun
```
3. Log in with an Administrator account (e.g., `admin`).
4. In the left sidebar, locate the **Users** menu to access the user management tools:
- **All Users**: `http://localhost:8080/manage/users`
- **Add New**: `http://localhost:8080/manage/users/new`
### 2. Managing Users (Admin Only)
- **All Users List**: Displays a table of all registered users with their `Login`, `Email`, `Status` (Activated/Deactivated), `Language`, `Profiles` (Roles such as `ROLE_ADMIN`, `ROLE_USER`), and `Created Date`.
- **Add New User**:
- Fill in the required fields: `Login`, `Email`.
- Optionally set `First Name`, `Last Name`, and `Language`.
- Assign Roles by checking the corresponding profile boxes.
- Set the user as **Activated** (if they are ready to log in).
- *Note: New users are created with a randomly generated password and a reset key. They must use the "Forgot your password?" flow to set their initial password before they can log in.*
- **Edit User**: Click the blue Edit icon next to any user in the list to modify their email, name, language, active status, or roles. Note that the `Login` cannot be changed after creation.
- **Delete User**: Click the red Trash icon to permanently remove a user. A confirmation modal will prevent accidental deletions.
### 3. User Profiles (All Authenticated Users)
Every logged-in user (regardless of role) can manage their personal profile by clicking their username in the top right corner and selecting **Profile**, or navigating to `http://localhost:8080/manage/profile`.
The Profile page contains two sections:
- **Personal Information**: Users can update their Email, First Name, Last Name, and Display Language.
- **Change Password**: Users can securely change their password by providing their current password, a new password, and confirming the new password.