Skip to content

Commit

Permalink
output email, lastname, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jan 24, 2012
1 parent 4f7c302 commit 66ab7d5
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -564,6 +564,16 @@ private boolean activateRegistration(String uuid, Document doc) {

registerUser(doc, urBean.getFirstname(), urBean.getLastname(), urBean.getEmail(), urBean.getPassword());
getRealm().getRepository().getNode(path).delete();

Element rootElement = doc.getDocumentElement();
// TODO: Add gender/salutation
Element emailE = (Element) rootElement.appendChild(doc.createElementNS(NAMESPACE, "email"));
emailE.appendChild(doc.createTextNode(urBean.getEmail()));
Element firstnameE = (Element) rootElement.appendChild(doc.createElementNS(NAMESPACE, "firstname"));
firstnameE.appendChild(doc.createTextNode(urBean.getFirstname()));
Element lastnameE = (Element) rootElement.appendChild(doc.createElementNS(NAMESPACE, "lastname"));
lastnameE.appendChild(doc.createTextNode(urBean.getLastname()));

return true;
} else {
log.error("No such activation request node: " + path);
Expand Down

0 comments on commit 66ab7d5

Please sign in to comment.