Changeset 5350
- Timestamp:
- 01/21/11 16:26:07 (14 years ago)
- Location:
- branches/UserManagement
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UserManagement/HeuristicLab.Services.Authentication.DataAccess/UserManagement.dbml
r5257 r5350 72 72 </Type> 73 73 </Table> 74 <Function Name="dbo.aspnet_Membership_ ResetPassword" Method="aspnet_Membership_ResetPassword">74 <Function Name="dbo.aspnet_Membership_SetPassword" Method="aspnet_Membership_SetPassword"> 75 75 <Parameter Name="ApplicationName" Parameter="applicationName" Type="System.String" DbType="NVarChar(256)" /> 76 76 <Parameter Name="UserName" Parameter="userName" Type="System.String" DbType="NVarChar(256)" /> 77 77 <Parameter Name="NewPassword" Parameter="newPassword" Type="System.String" DbType="NVarChar(128)" /> 78 <Parameter Name="MaxInvalidPasswordAttempts" Parameter="maxInvalidPasswordAttempts" Type="System.Int32" DbType="Int" />79 <Parameter Name="PasswordAttemptWindow" Parameter="passwordAttemptWindow" Type="System.Int32" DbType="Int" />80 78 <Parameter Name="PasswordSalt" Parameter="passwordSalt" Type="System.String" DbType="NVarChar(128)" /> 81 79 <Parameter Name="CurrentTimeUtc" Parameter="currentTimeUtc" Type="System.DateTime" DbType="DateTime" /> 82 80 <Parameter Name="PasswordFormat" Parameter="passwordFormat" Type="System.Int32" DbType="Int" /> 83 <Parameter Name="PasswordAnswer" Parameter="passwordAnswer" Type="System.String" DbType="NVarChar(128)" />84 81 <Return Type="System.Int32" /> 85 82 </Function> -
branches/UserManagement/HeuristicLab.Services.Authentication.DataAccess/UserManagement.designer.cs
r5257 r5350 118 118 } 119 119 120 [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.aspnet_Membership_ ResetPassword")]121 public int aspnet_Membership_ ResetPassword([global::System.Data.Linq.Mapping.ParameterAttribute(Name="ApplicationName", DbType="NVarChar(256)")] string applicationName, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="UserName", DbType="NVarChar(256)")] string userName, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NewPassword", DbType="NVarChar(128)")] string newPassword, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaxInvalidPasswordAttempts", DbType="Int")] System.Nullable<int> maxInvalidPasswordAttempts, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordAttemptWindow", DbType="Int")] System.Nullable<int> passwordAttemptWindow, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordSalt", DbType="NVarChar(128)")] string passwordSalt, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CurrentTimeUtc", DbType="DateTime")] System.Nullable<System.DateTime> currentTimeUtc, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordFormat", DbType="Int")] System.Nullable<int> passwordFormat, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordAnswer", DbType="NVarChar(128)")] string passwordAnswer)122 { 123 IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), applicationName, userName, newPassword, maxInvalidPasswordAttempts, passwordAttemptWindow, passwordSalt, currentTimeUtc, passwordFormat, passwordAnswer);120 [global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.aspnet_Membership_SetPassword")] 121 public int aspnet_Membership_SetPassword([global::System.Data.Linq.Mapping.ParameterAttribute(Name="ApplicationName", DbType="NVarChar(256)")] string applicationName, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="UserName", DbType="NVarChar(256)")] string userName, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NewPassword", DbType="NVarChar(128)")] string newPassword, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordSalt", DbType="NVarChar(128)")] string passwordSalt, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CurrentTimeUtc", DbType="DateTime")] System.Nullable<System.DateTime> currentTimeUtc, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="PasswordFormat", DbType="Int")] System.Nullable<int> passwordFormat) 122 { 123 IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), applicationName, userName, newPassword, passwordSalt, currentTimeUtc, passwordFormat); 124 124 return ((int)(result.ReturnValue)); 125 125 } -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/HeuristicLab.Services.Authentication.ServiceClient.csproj
r5257 r5350 70 70 </ItemGroup> 71 71 <ItemGroup> 72 <None Include="app.config" /> 72 <None Include="app.config"> 73 <SubType>Designer</SubType> 74 </None> 73 75 <None Include="HeuristicLab.snk" /> 74 76 <None Include="ServiceClients\GenerateServiceClients.cmd" /> -
branches/UserManagement/HeuristicLab.Services.Authentication/AuthenticationService.cs
r5257 r5350 145 145 146 146 147 // TODO !!! 147 148 148 public User ResetPassword(string applicationName, string userName, string password) { 149 149 150 150 string salt = ""; 151 string answer = "";152 153 using (UserManagementDataContext db = new UserManagementDataContext()) { 154 db.aspnet_Membership_ ResetPassword(applicationName, userName, password, null, null, salt, null, null, answer);151 int format = 1; //Password format (0=Plaintext, 1=Hashed, 2=Encrypted) 152 153 using (UserManagementDataContext db = new UserManagementDataContext()) { 154 db.aspnet_Membership_SetPassword(applicationName, userName, password, salt, DateTime.UtcNow, format); 155 155 return null; 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.