on 12/19/2000 4:51 PM, "Rafal Krzewski" <[EMAIL PROTECTED]> wrote:
> a bit better, but still wrong!
>
> TurbineUser user = TurbineSecurity.getAnonymousUser();
> user.setLoginName("collie");
> user.setFirstName("colin");
> TurbineSercurity.addUser(user, "password");
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")
TurbineSecurity.addUser(user, "bar");
Which one will be used? :-) Obviously probably the second one, but the fact
that you can do the first one could add potential mistakes.
thanks,
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]