Skip to content

Commit

Permalink
return submitted email address
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Apr 12, 2012
1 parent 0f31c1d commit 12d1978
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -118,8 +118,10 @@ private void processUserAction(HttpServletRequest request, Document adoc) throws
Element rootElement = adoc.getDocumentElement();
if (action.equals(SUBMITFORGOTPASSWORD)) {
String uuid = UUID.randomUUID().toString();
String message = generateForgotPasswordRequest(request.getParameter("email"), uuid);
String email = request.getParameter("email");
String message = generateForgotPasswordRequest(email, uuid);
Element statusElement = (Element) rootElement.appendChild(adoc.createElementNS(NAMESPACE, "show-message"));
statusElement.setAttribute("submitted-email", email);
if(!message.equals(SUCCESS)) {
statusElement.setTextContent(message);
statusElement.setAttribute("status", "400");
Expand Down

0 comments on commit 12d1978

Please sign in to comment.