- Timestamp:
- 06/25/10 16:30:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs
r3943 r3948 35 35 36 36 public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { 37 throw new NotImplementedException(); 37 DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext(); 38 if (db == null) { 39 return false; 40 } 41 try { 42 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 43 if (u.ChangePasswordQuestionAndAnswer(password, newPasswordQuestion, newPasswordAnswer)) { 44 db.SubmitChanges(); 45 return true; 46 } else { 47 return false; 48 } 49 } 50 catch (Exception) { 51 return false; 52 } 38 53 } 39 54
Note: See TracChangeset
for help on using the changeset viewer.