Skip to content

Commit

Permalink
Account login DisableAuditing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaoHans committed Nov 1, 2024
1 parent 20dad71 commit 12a7286
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
PageSizeOptions="@_pageSizeOptions" ShowPagingSummary="@_showPagerSummary" LoadData="LoadDataAsync"
Count="@_totalCount" IsLoading="@_isLoading">
<Columns>
<RadzenDataGridColumn Property="@nameof(AuditLogDto.Url)" Title="@L["Url"]" Frozen="true" Sortable="false" Width="200px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.UserName)" Title="@L["UserName"]" Sortable="false" Width="100px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ClientIpAddress)" Title="@L["ClientIpAddress"]" Sortable="false" Width="100px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.HttpMethod)" Title="@L["HttpMethod"]" Sortable="false" Width="100px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.HttpStatusCode)" Title="@L["HttpStatusCode"]" Sortable="false" Width="100px" >
<RadzenDataGridColumn Property="@nameof(AuditLogDto.Url)" Title="@L["Url"]" Frozen="true" Sortable="false" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.UserName)" Title="@L["UserName"]" Sortable="false" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ClientIpAddress)" Title="@L["ClientIpAddress"]" Sortable="false" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.HttpMethod)" Title="@L["HttpMethod"]" Sortable="false" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.HttpStatusCode)" Title="@L["HttpStatusCode"]" Sortable="false" >
<Template>
@{
var color = "rz-color-info";
Expand All @@ -38,9 +38,9 @@
}
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ExecutionTime)" Title="@L["ExecutionTime"]" Width="160px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ExecutionDuration)" Filterable="false" Sortable="false" Title="@L["ExecutionDuration"]" Width="160px" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.BrowserInfo)" Filterable="false" Sortable="false" Title="@L["BrowserInfo"]" Width="160px">
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ExecutionTime)" Title="@L["ExecutionTime"]" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.ExecutionDuration)" Filterable="false" Sortable="false" Title="@L["ExecutionDuration"]" />
<RadzenDataGridColumn Property="@nameof(AuditLogDto.BrowserInfo)" Filterable="false" Sortable="false" Title="@L["BrowserInfo"]">
<Template>
<RadzenLabel MouseEnter="@(args => ShowTooltip(args, context.BrowserInfo, new TooltipOptions(){ Position = TooltipPosition.Left, Duration = null }))">@context.BrowserInfo</RadzenLabel>
</Template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Auditing;
using Volo.Abp.Identity;
using Volo.Abp.Identity.AspNetCore;

Expand All @@ -22,6 +23,7 @@ IdentitySecurityLogManager identitySecurityLogManager
}

[HttpPost("/account/login")]
[DisableAuditing]
public async Task<IActionResult> LoginAsync(string username, string password, bool rememberMe)
{
var result = await _signInManager.PasswordSignInAsync(username, password, rememberMe, true);
Expand Down

0 comments on commit 12a7286

Please sign in to comment.