From 29d908811ffbb46cb123f3b5f7f5ca008d15876b Mon Sep 17 00:00:00 2001 From: harture <31417989+harture@users.noreply.github.com> Date: Wed, 8 Jan 2020 15:35:27 +0100 Subject: [PATCH] [CLOUDTRUST-2079] Remove send-verify-email --- users.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/users.go b/users.go index 26ad081..cb76325 100644 --- a/users.go +++ b/users.go @@ -13,7 +13,6 @@ const ( userCountPath = userPath + "/count" userIDPath = userPath + "/:id" userGroupsPath = userIDPath + "/groups" - sendVerifyEmailPath = userIDPath + "/send-verify-email" executeActionsEmailPath = userIDPath + "/execute-actions-email" sendReminderEmailPath = "/auth/realms/:realm/onboarding/sendReminderEmail" smsAPI = "/auth/realms/:realm/smsApi" @@ -71,17 +70,6 @@ func (c *Client) DeleteUser(accessToken string, realmName, userID string) error return c.delete(accessToken, url.Path(userIDPath), url.Param("realm", realmName), url.Param("id", userID)) } -// SendVerifyEmail sends an email-verification email to the user An email contains a link the user can click to verify their email address. -func (c *Client) SendVerifyEmail(accessToken string, realmName string, userID string, paramKV ...string) error { - if len(paramKV)%2 != 0 { - return errors.New(MsgErrInvalidParam + "." + EvenParams) - } - - var plugins = append(createQueryPlugins(paramKV...), url.Path(sendVerifyEmailPath), url.Param("realm", realmName), url.Param("id", userID)) - - return c.put(accessToken, plugins...) -} - // ExecuteActionsEmail sends an update account email to the user. An email contains a link the user can click to perform a set of required actions. func (c *Client) ExecuteActionsEmail(accessToken string, realmName string, userID string, actions []string, paramKV ...string) error { if len(paramKV)%2 != 0 {