From 602222bdd2a1839abc86fab8b85be1793ac3501c Mon Sep 17 00:00:00 2001 From: Bob Hageman Date: Wed, 6 Sep 2023 09:38:21 +0200 Subject: [PATCH] chore: remove unused parameter --- .../java/foundation/privacybydesign/email/EmailRestApi.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/foundation/privacybydesign/email/EmailRestApi.java b/src/main/java/foundation/privacybydesign/email/EmailRestApi.java index c065f97..211eeb1 100644 --- a/src/main/java/foundation/privacybydesign/email/EmailRestApi.java +++ b/src/main/java/foundation/privacybydesign/email/EmailRestApi.java @@ -48,8 +48,7 @@ public EmailRestApi() { @POST @Path("/send-email") @Produces(MediaType.TEXT_PLAIN) - public Response sendEmail(@Context HttpServletRequest req, - @FormParam("email") String email, + public Response sendEmail(@FormParam("email") String email, @FormParam("language") String lang, @HeaderParam("Authorization") String auth) { EmailConfiguration conf = EmailConfiguration.getInstance(); @@ -112,8 +111,7 @@ public Response sendEmail(@Context HttpServletRequest req, @POST @Path("/send-email-token") @Produces(MediaType.TEXT_PLAIN) - public Response sendEmailToken(@Context HttpServletRequest req, - @FormParam("email") String emailAddress, + public Response sendEmailToken(@FormParam("email") String emailAddress, @FormParam("language") String language) { EmailConfiguration conf = EmailConfiguration.getInstance();