Jon Stevens wrote:
> Ok, I do like that better, however, I'm not sure why you have addUser() pass
> in a password instead of user.setPassword(). I think it creates confusion.
> For example:
>
> user.setPassword("foo")
Application code should *never* call this method directly. see the
JavaDoc for User interface.
> TurbineSecurity.addUser(user, "bar");
This method will encrypt the password (if applicable), and save it
or send it to the respective authenticating authority.
> Which one will be used? :-) Obviously probably the second one, but the fact
> that you can do the first one could add potential mistakes.
I think that the JavaDoc is clear enough in this regard.
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]