Advertisement
Guest User

Untitled

a guest
Sep 12th, 2011
906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. namespace WCF_Tries
  2. {
  3. public class CustomValidator : UserNamePasswordValidator
  4. {
  5.  
  6. public override void Validate(string userName, string password)
  7. {
  8. if (userName != "foo" || password != "bar")
  9. throw new FaultException(string.Format("Wrong username ({0}) or password ", userName));
  10.  
  11. }
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement