示例#1
0
        public async Task <PortalTokenResp> PwdAdminLogin([FromBody] PortalPasswordReq req)
        {
            var stateRes = CheckLoginModelState(req);

            if (!stateRes.IsSuccess())
            {
                return(new PortalTokenResp().WithResp(stateRes));
            }

            return(await service.PwdAdminLogin(req.name, req.password, req.type, req.is_from_bind));
        }