9 lines
249 B
Bash
Executable file
9 lines
249 B
Bash
Executable file
#!/bin/bash
|
|
echo -n "user id: "
|
|
read USERID
|
|
echo -n "password: "
|
|
read -s PASSWORD
|
|
echo
|
|
curl -X POST \
|
|
-d "{\"type\":\"m.login.password\", \"user\":\"$USERID\", \"password\":\"$PASSWORD\"}" \
|
|
"https://celery.eu.org/_matrix/client/r0/login"
|