Skip to content

Commit

Permalink
Merge pull request #2792 from abpframework/maliming/pwd-DisableAuditing
Browse files Browse the repository at this point in the history
Disable auditing of password fields.
  • Loading branch information
hikalkan authored Feb 10, 2020
2 parents 2b7d0db + d8b9825 commit 1a84e8a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Auditing;

namespace Volo.Abp.Account.Web.Areas.Account.Controllers.Models
{
Expand All @@ -12,6 +13,7 @@ public class UserLoginInfo
[Required]
[StringLength(32)]
[DataType(DataType.Password)]
[DisableAuditing]
public string Password { get; set; }

public bool RememberMe { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Security.Claims;
using System.Threading.Tasks;
using Volo.Abp.Account.Settings;
using Volo.Abp.Auditing;
using Volo.Abp.Identity;
using Volo.Abp.Security.Claims;
using Volo.Abp.Settings;
Expand Down Expand Up @@ -254,6 +255,7 @@ public class LoginInputModel
[Required]
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DataType(DataType.Password)]
[DisableAuditing]
public string Password { get; set; }

public bool RememberMe { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Account.Settings;
using Volo.Abp.Auditing;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Identity;
using Volo.Abp.Settings;
Expand Down Expand Up @@ -83,6 +84,7 @@ public class PostInput
[Required]
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DataType(DataType.Password)]
[DisableAuditing]
public string Password { get; set; }
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Auditing;

namespace Volo.Abp.Identity
{
public class IdentityUserCreateDto : IdentityUserCreateOrUpdateDtoBase
{
[Required]
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DisableAuditing]
public string Password { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace Volo.Abp.Identity
{
public class IdentityUserUpdateDto : IdentityUserCreateOrUpdateDtoBase, IHasConcurrencyStamp
{
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DisableAuditing]
public string Password { get; set; }

public string ConcurrencyStamp { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Auditing;
using Volo.Abp.Application.Dtos;

namespace Volo.Abp.Identity.Web.Pages.Identity.Users
Expand Down Expand Up @@ -65,6 +66,7 @@ public class UserInfoViewModel
[Required]
[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DataType(DataType.Password)]
[DisableAuditing]
public string Password { get; set; }

[Required]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Auditing;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

Expand Down Expand Up @@ -75,6 +76,7 @@ public class UserInfoViewModel : IHasConcurrencyStamp

[StringLength(IdentityUserConsts.MaxPasswordLength)]
[DataType(DataType.Password)]
[DisableAuditing]
public string Password { get; set; }

[Required]
Expand Down

0 comments on commit 1a84e8a

Please sign in to comment.