|
@@ -11,6 +11,7 @@ using Swashbuckle.AspNetCore.Annotations;
|
|
|
|
|
|
namespace ERP.Core.Controller
|
|
namespace ERP.Core.Controller
|
|
{
|
|
{
|
|
|
|
+
|
|
[Route("auth")]
|
|
[Route("auth")]
|
|
public class AuthController : BaseController
|
|
public class AuthController : BaseController
|
|
{
|
|
{
|
|
@@ -34,7 +35,7 @@ namespace ERP.Core.Controller
|
|
{
|
|
{
|
|
var securityConfig = _configuration.GetSection(FrameworkConstant.SECURITY_CONFIG).Get<SecurityConfig>() ?? new SecurityConfig();
|
|
var securityConfig = _configuration.GetSection(FrameworkConstant.SECURITY_CONFIG).Get<SecurityConfig>() ?? new SecurityConfig();
|
|
|
|
|
|
- var loginUser = _authService.GetLoginUser(securityConfig, form.LoginName, form.Password);
|
|
|
|
|
|
+ var loginUser = _authService.GetLoginUser(securityConfig, form.UserName, form.Password);
|
|
|
|
|
|
var result = LoginHelper.LoginByDevice(loginUser, securityConfig, DeviceEnum.Web);
|
|
var result = LoginHelper.LoginByDevice(loginUser, securityConfig, DeviceEnum.Web);
|
|
|
|
|