The View has a string with the password wrote by user.The Presenter will create the DTO with that password. The Model/Service will receive the DTO, will calculate the hash and will assign it to the entity.
That all Business Logic without NH involved in it. 2009/10/13 Maxus <rtypestud...@gmail.com> > > Hi People, > > I have business reqirement to hash the users passwords for security. > Whats the best way to achive that using nhibernate? Ideally I wanted > to use the set method on the password property, but due to the use of > DTOs this would be set everytime the entity went out and came back in > which would rehash the already hashed value. I tried using a trigger, > but nhibernate doesn't refetch the password after the trigger has > hashed the value. > > Any ideas how best to solve this issue? > > Thanks in advance! > -Maxus > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---