This repository has been archived on 2024-01-24. You can view files and clone it, but cannot push or open issues or pull requests.
jackwagon-mail-old-old-old/get-token.sh
2022-05-19 18:09:44 -07:00

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"