【发布时间】:2019-04-29 09:14:37
【问题描述】:
我正在开发一个 Visual Studio 项目,mvc 和 c# 语言。这个项目是我的一位同事传给我的,问题是当我尝试登录时,我无法登录。检查了几次我认为问题出在角度控制器上。事实上,当我尝试登录时,即使我输入了正确的数据,我也会运行“err”。给我的错误是:“无法加载资源:net::ERR_CONNECTION_REFUSED [http://localhost:1336/token]”。
LoginController.prototype.doLogin = function(){
var that = this;
this.authService.login(this.vm.username, this.vm.password).then(
function(response) {
that.layoutService.gotoHome();
}, function(err) {
that.vm.hasInvalidData = true;
}
);
}
【问题讨论】:
-
这只是一个英文论坛。如果你能确定翻译,你会得到一些帮助。
标签: c# asp.net-mvc angular visual-studio