- Timestamp:
- 06/24/10 00:23:16 (14 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype/Service/Provider
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs
r3939 r3943 1 1 using System; 2 using System.Collections.Generic;3 2 using System.Linq; 4 using System.Text;5 3 using System.Web.Security; 4 using Persistence; 6 5 7 6 namespace Service.Provider { … … 17 16 18 17 public override bool ChangePassword(string username, string oldPassword, string newPassword) { 19 throw new NotImplementedException(); 18 DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext(); 19 if (db == null) { 20 return false; 21 } 22 try { 23 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 24 if (u.ChangePassword(oldPassword, newPassword)) { 25 db.SubmitChanges(); 26 return true; 27 } else { 28 return false; 29 } 30 } 31 catch (Exception) { 32 return false; 33 } 20 34 } 21 35 -
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs
r3939 r3943 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 2 using System.Web.Security; 3 using Persistence; 6 4 7 5 namespace Service.Provider {
Note: See TracChangeset
for help on using the changeset viewer.