mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
9 lines
278 B
Bash
Executable File
9 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# < 2 ]] ; then
|
|
echo 'reset-password.sh <username> <new password>'
|
|
exit 1
|
|
fi
|
|
|
|
curl --unix-socket /var/tmp/focalboard_local.socket http://localhost/api/v2/admin/users/$1/password -X POST -H 'Content-Type: application/json' -d '{ "password": "'$2'" }'
|