feat(auth): enhance login flow with notifications and path normalization
- 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:
11
CLI.md
11
CLI.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user