focalboard/server/admin-scripts/reset-password.sh
2021-01-25 11:22:15 -08:00

8 lines
272 B
Bash
Executable file

#!/bin/bash
if [[ $# < 2 ]] ; then
echo 'reset-password.sh <username> <new password>'
exit 1
fi
curl --unix-socket /var/tmp/octo_local.socket http://localhost/api/v1/admin/users/$1/password -X POST -H 'Content-Type: application/json' -d '{ "password": "'$2'" }'