I did it by overriding CreateNewUserAndConfirm.java, and
UpdateAccount.java.
The changes I made to store additional data:
-add code to extract the additional values (such as address)
String address = data.getParameters().getString("address1", "");
-store those values to a hashtable
extInfo.put("Address", address);
-then later on when the code starts to permanently store information
(such as user.set*(), but before data.setUser(user))
user.setPerm("ExtInfo", extInfo);
The changes I made to retrieve additional data:
Suppose I want to send the address in the confirmation email:
In SendConfirmationEmail.doPerform():
//Get current User object
User user = JetspeedSecurity.getUser(username);
//Get extended information
Hashtable extInfo = (Hashtable)(user.getPerm("ExtInfo"));
I don't know if this is the right way, but it seems concise and
straightforward. Hope this helps.
YS.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>