Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-16 15:11:05 +00:00
parent f1e6613177
commit 03b2b439e5
17 changed files with 686 additions and 636 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
"go.m3o.com/user"
)
// Reset password with the code sent by the "SendPasswordResetEmail" endoint.
func main() {
userService := user.NewUserService(os.Getenv("M3O_API_TOKEN"))
rsp, err := userService.ResetPassword(&user.ResetPasswordRequest{
Code: "some-code-from-email",
ConfirmPassword: "newpass123",
NewPassword: "newpass123",
})
fmt.Println(rsp, err)
}