Merge pull request 'fix: fix: hire-an-agent password reset missing must_change_password:false — clone fails (#200)' (#205) from fix/issue-200 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
33eb565d7e
1 changed files with 1 additions and 1 deletions
|
|
@ -2677,7 +2677,7 @@ disinto_hire_an_agent() {
|
|||
-u "${admin_user}:${admin_pass}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${forge_url}/api/v1/admin/users/${agent_name}" \
|
||||
-d "{\"password\":\"${user_pass}\"}" >/dev/null 2>&1; then
|
||||
-d "{\"password\":\"${user_pass}\",\"must_change_password\":false}" >/dev/null 2>&1; then
|
||||
echo " Reset password for existing user '${agent_name}'"
|
||||
else
|
||||
echo " Warning: could not reset password for existing user" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue