Yue 1 місяць тому
батько
коміт
2f4b8806e5

+ 9 - 0
SourceCode/Src/VberAdmin.Web.Core/VberAdminWebCoreModule.cs

@@ -18,6 +18,7 @@ using VberZero;
 using VberZero.Folders;
 using VberZero.Jwt;
 using VberZero.Navigation;
+using Abp.Web.Security.AntiForgery;
 
 namespace VberAdmin;
 
@@ -84,4 +85,12 @@ public class VberAdminWebCoreModule : AbpModule
         appFolders.DownloadFolder = $"Common{Path.DirectorySeparatorChar}Download{Path.DirectorySeparatorChar}AttachFiles";
         appFolders.UploadFolder = $"Common{Path.DirectorySeparatorChar}Upload{Path.DirectorySeparatorChar}AttachFiles";
     }
+}
+
+public class vcv : IAbpAntiForgeryValidator
+{
+    public bool IsValid(string token)
+    {
+        return true;
+    }
 }

+ 3 - 5
SourceCode/Src/VberAdmin.Web.Mvc/Views/Home/Calendar.cshtml

@@ -1,7 +1,6 @@
 @using VberAdmin.Web.Models.Input
 @using VberAdmin.Web.Models.Modals
 
-
 @{
     ViewBag.ActiveMenu = PermissionNames.Vber;
     ViewBag.Title = L("MyCalendar");
@@ -41,7 +40,7 @@
 }
 @section styles
 {
-   
+
     <style>
         .fc .fc-list-empty-cushion {
             color: #dc3545 !important;
@@ -72,7 +71,6 @@
 
 @await Html.PartialAsync("_Modal", modal)
 
-
 @section scripts
 {
     <script src="/Metronic/assets/plugins/custom/fullcalendar/fullcalendar.bundle.js" asp-append-version="false"></script>
@@ -436,7 +434,7 @@
                             }
                         });
                     }
-                   
+
                 },
                 popoverShow = (e) => {
                     popoverDestroy();
@@ -470,7 +468,7 @@
                     option = option || {};
                     $modal = option.modal ? (typeof option.modal == "string" ? $('#' + option.modal) : $(option.modal)) : $(Selector.MODAL);
                     $form = $modal.find('form');
-          
+
                     today = moment().startOf("day");
                     $(Selector.BTN_ADD).on(`click${EVENT_KEY}`,
                         () => {

+ 2 - 2
SourceCode/Zero/VberYue.Zero/Auditing/VzAuditingStore.cs

@@ -35,7 +35,7 @@ public class VzAuditingStore : IAuditingStore, ITransientDependency
         _auditLogRepository = auditLogRepository;
         _funRepository = funRepository;
         _cacheManager = cacheManager;
-        _appConfiguration = env.GetAppConfiguration(); ;
+        _appConfiguration = env.GetAppConfiguration();
         Logger = NullLogger.Instance;
     }
 
@@ -118,7 +118,7 @@ public class VzAuditingStore : IAuditingStore, ITransientDependency
         {
             try
             {
-                log.MethodNameLang = $"Log_{ log.MethodName}";
+                log.MethodNameLang = $"Log_{log.MethodName}";
                 log.MethodName = _cacheManager.GetCache<string, string>(VzConsts.CacheAuditLogDesc).Get(
                     serviceName + "_" + log.MethodName, () => GetMethodName(log.MethodName, log.MethodName, serviceName));
             }