feat(auth): enhance login flow with notifications and path normalization
Some checks failed
CI / Test (1.22) (push) Failing after -30m33s
CI / Test (1.23) (push) Failing after -30m32s
CI / Lint (push) Failing after -30m39s
CI / Build (push) Failing after -30m35s

- add success notification on successful login
- show error notification with detailed message on login failure
- normalize API paths to prevent double slashes and trailing slashes
- redirect to login page only if not on login request or page
This commit is contained in:
2026-03-05 01:03:50 +02:00
parent 1490e0b596
commit 271a0603b8
10 changed files with 230 additions and 29 deletions

11
CLI.md
View File

@@ -150,6 +150,17 @@ All commands support the following global flags:
- `--config <path>`: Path to configuration file
- `--server <url>`: Server URL (overrides config file)
### Password Hash Utility
Generate bcrypt password hashes for user creation and password updates:
```bash
./bin/whatshook-cli password-hash
./bin/whatshook-cli password-hash "my-secret-password"
./bin/whatshook-cli password-hash --password "my-secret-password" --cost 12
echo -n "my-secret-password" | ./bin/whatshook-cli password-hash --stdin
```
### Health Check
Check if the server is running and healthy: