0
这是我的第一次堆栈溢出问题,因为谷歌通常排序我。但我似乎无法找到任何/任何人在线复制我的问题。
我使用的Angular Devise模块,当我试图登录使用下列URL
test.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json
$ HTTP或者制定它改变
http://undefined:undefinedtest.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json
这里是我的配置代码:
AuthInterceptProvider.interceptAuth(true);
AuthProvider.loginPath('test.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json');
AuthProvider.loginMethod('POST');
AuthProvider.resourceName('users');
我的登录调用:
var credentials = {
email: '[email protected]',
password: 'password1'
};
Auth.login(credentials).then(function(user) {
console.log(user); // => {id: 1, ect: '...'}
}, function(error) {
console.log(error)
// Authentication failed...
});
我挖成色器件和IM 99%肯定这是用$ HTTP发生。任何帮助都将不胜感激