focalboard/server/admin-scripts/reset-password.sh

9 lines
278 B
Bash
Raw Normal View History

2021-01-20 23:22:23 +01:00
#!/bin/bash
if [[ $# < 2 ]] ; then
echo 'reset-password.sh <username> <new password>'
exit 1
fi
2021-02-01 19:31:06 +01:00
curl --unix-socket /var/tmp/focalboard_local.socket http://localhost/api/v1/admin/users/$1/password -X POST -H 'Content-Type: application/json' -d '{ "password": "'$2'" }'