Token based authentication
This commit is contained in:
1 parent
9a8e68f021
commit
5bbdfe8747
7 files changed
+121
-77
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="http://localhost:5000/user/login"
|
||||
DATA='{"username":"test-user","password":"123456"}'
|
||||
|
||||
RESPONSE=$(curl -s -X POST $URL -H "Content-Type: application/json" -d "$DATA")
|
||||
echo $RESPONSE
|
||||
Reference in new issue
Block a user