feature : add login controller and get detail profile
Add user profile and permissions handling - Updated `AuthHelper` to deserialize permissions from claims. - Introduced `GetDates` method in `GeneralController` for date info. - Created `LoginController` with `GetProfile` method to return user profile details.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
using System.Globalization;
|
||||
using _0_Framework.Application;
|
||||
using CompanyManagment.EFCore.Migrations;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ServiceHost.BaseControllers;
|
||||
|
||||
@@ -6,6 +9,12 @@ namespace ServiceHost.Controllers;
|
||||
|
||||
public class GeneralController:GeneralBaseController
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// نمایش اطلاعات عمومی مانند تاریخ ها و سال ها
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("Dates")]
|
||||
public IActionResult GetDates()
|
||||
{
|
||||
@@ -20,4 +29,6 @@ public class GeneralController:GeneralBaseController
|
||||
years,months,currentDate
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user