diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java index 015e0be3cf3..ae26b17e0e8 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java @@ -787,7 +787,7 @@ public class UserResource extends EntityResource { .build(); } - @GET + @PUT @Path("/registrationConfirmation") @Operation( operationId = "confirmUserEmail", @@ -808,7 +808,7 @@ public class UserResource extends EntityResource { return Response.status(Response.Status.OK).entity("Email Verified Successfully").build(); } - @GET + @PUT @Path("/resendRegistrationToken") @Operation( operationId = "resendRegistrationToken", diff --git a/openmetadata-ui/src/main/resources/ui/src/axiosAPIs/auth-API.ts b/openmetadata-ui/src/main/resources/ui/src/axiosAPIs/auth-API.ts index a002edc20d0..e757691abf3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/axiosAPIs/auth-API.ts +++ b/openmetadata-ui/src/main/resources/ui/src/axiosAPIs/auth-API.ts @@ -68,7 +68,7 @@ export const resetPassword = async (payload: PasswordResetRequest) => { }; export const confirmRegistration = async (token: string) => { - const response = await axiosClient.get( + const response = await axiosClient.put( `${apiPath}/registrationConfirmation?token=${token}` ); @@ -76,7 +76,7 @@ export const confirmRegistration = async (token: string) => { }; export const resendRegistrationToken = async () => { - const response = await axiosClient.get(`${apiPath}/resendRegistrationToken`); + const response = await axiosClient.put(`${apiPath}/resendRegistrationToken`); return response; };