QL模板测试 账号或者密码不正确 1

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

using Entity;
using Business;
using Microsoft.AspNetCore.Cors;

namespace QL.Back.API.Controllers.admin
{
    /// <summary>
    /// 后台管理用户登录验证
    /// </summary>
    [Route("api/[controller]/[action]")]
    [EnableCors("any")]
    public class AccountController : BaseController
    {
        Sys_ManagerOperate _account = new Sys_ManagerOperate();
        /// <summary>
        /// 验证账号密码
        /// </summary>
        [HttpPost]
        [HttpGet]
        public IActionResult Check(string username, string password)
        {
            try
            {
                string pwd = SecurityHelper.MD5(password);
                Sys_Manager model = _account.GetDbSet().Where(q => q.LoginName == username && q

猜你喜欢

转载自blog.csdn.net/chenggong9527/article/details/124983728