Hi,

you can set the RunWhen property to specify when this validation
should be triggered.

something like;

[Property, ValidateSameAs("Password", "Password", RunWhen = RunWhen.Insert)]

cheers,
Ernst

On Tue, Sep 30, 2008 at 12:38 PM, bdaniel7 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a problem, which I find silly:
> the "User" model has a Password field and a RepeatPassword field with
> [ValidateSamesAs("Password")].
>
> When I create the user the 2 fields are compared for validation, I
> find it normal.
> But whenever I try to update something in a user, the validation kicks
> in.
>
> This i don't find normal, because I'm not updating the password every
> time.
>
> Can this be disabled? or I have to load the password in RepeatPassword
> as well?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to