mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 12:04:41 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -2,8 +2,8 @@ curl "http://localhost:8080/user/UpdatePassword" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"confirmPassword": "myEvenMoreSecretPass123",
|
||||
"id": "usrid-1",
|
||||
"newPassword": "myEvenMoreSecretPass123",
|
||||
"oldPassword": "mySecretPass123"
|
||||
"confirmPassword": "Password2",
|
||||
"id": "user-1",
|
||||
"newPassword": "Password2",
|
||||
"oldPassword": "Password1"
|
||||
}'
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
func UpdateTheAccountPassword() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
|
||||
ConfirmPassword: "myEvenMoreSecretPass123",
|
||||
NewPassword: "myEvenMoreSecretPass123",
|
||||
OldPassword: "mySecretPass123",
|
||||
ConfirmPassword: "Password2",
|
||||
NewPassword: "Password2",
|
||||
OldPassword: "Password1",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ const { UserService } = require("m3o/user");
|
||||
async function updateTheAccountPassword() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.updatePassword({
|
||||
confirmPassword: "myEvenMoreSecretPass123",
|
||||
id: "usrid-1",
|
||||
newPassword: "myEvenMoreSecretPass123",
|
||||
oldPassword: "mySecretPass123",
|
||||
confirmPassword: "Password2",
|
||||
id: "user-1",
|
||||
newPassword: "Password2",
|
||||
oldPassword: "Password1",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user