- Timestamp:
- 06/24/10 00:23:16 (14 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype/Service
- Files:
-
- 1 added
- 3 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 { -
branches/HeuristicLab.Services.Authentication Prototype/Service/Service.csproj
r3932 r3943 38 38 </Reference> 39 39 <Reference Include="System.Data" /> 40 <Reference Include="System.Data.Linq"> 41 <RequiredTargetFramework>3.5</RequiredTargetFramework> 42 </Reference> 40 43 <Reference Include="System.Runtime.Serialization"> 41 44 <RequiredTargetFramework>3.0</RequiredTargetFramework> … … 74 77 </Target> 75 78 --> 79 <ProjectExtensions> 80 <VisualStudio> 81 <FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}"> 82 <WcfProjectProperties> 83 <AutoStart>True</AutoStart> 84 </WcfProjectProperties> 85 </FlavorProperties> 86 </VisualStudio> 87 </ProjectExtensions> 76 88 </Project>
Note: See TracChangeset
for help on using the changeset viewer.