我一直试图连接到运行在远程服务器上的一个流星应用程序的mongo,使用robomongo v0.8.4。我尝试在“address”字段中设置承载meteor应用程序的服务器的IP地址,在“Connection”选项卡的端口号字段中设置3002。在“身份验证”选项卡中,选中“执行身份验证”复选框,将数据库名称设置为“meteor”,并且没有保留任何用户名或密码为空。
当我试图连接时,我会得到以下错误,
Cannot connect to MongoDB
error: Unable to connect to MongoDB
我是不是漏掉了什么?我在堆里看过其他相关的帖子,但是找不到
解决这个具体
我正在编写需要身份验证的流星测试,并且遇到了一系列问题。这是我的密码:
MochaWeb?.testOnly ->
describe "Login", ->
describe "security", ->
it 'should take you to /login/ if you are not logged in', ->
Meteor.flush()
chai.assert.equal Router.current().url, '/login/'
当用户想用new.How更改密码时,我需要检查旧密码,我可以这样做吗?
var oldpassword = template.$('#oldpassword').val();
var opt =Meteor.users.findOne({_id:Meteor.userId() });
if (opt.password!==oldpassword)
{
alert('Wrong old password');
return false;
}
我正在考虑将我的django应用程序迁移到meteor。但在此之前,我想回答一个问题: Meteor是如何加密密码的?(使用帐户密码包?)
在我的例子中,我使用了默认的django密码加密:
Django provides a flexible password storage system and uses PBKDF2 by default.
The password attribute of a User object is a string in this format:
<algorithm>$<iterations>$<salt>$<ha