mirror of
https://github.com/mattermost/focalboard.git
synced 2025-04-11 11:19:56 +02:00
Example reset-password.sh script
This commit is contained in:
parent
7d25ff0acf
commit
159023b540
8
server/scripts/reset-password.sh
Executable file
8
server/scripts/reset-password.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/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'" }'
|
Loading…
x
Reference in New Issue
Block a user