mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
19 lines
446 B
Go
Executable File
19 lines
446 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/micro/services/clients/go/user"
|
|
"os"
|
|
)
|
|
|
|
// Update the account password
|
|
func UpdateTheAccountPassword() {
|
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
|
|
ConfirmPassword: "myEvenMoreSecretPass123",
|
|
NewPassword: "myEvenMoreSecretPass123",
|
|
OldPassword: "mySecretPass123",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|