Further notes on Tworld: (by the way, is it pronounced "tee-world" or "twirled"?)
To log in as Admin, I first created a new user through the web interface, and then used mongo to copy the 'password' and 'pwsalt' properties from the new user to Admin. This is almost certainly not the best approach, and upon logging in, Admin seems to be stuck in a sort of mid-Link limbo (further investigations ongoing).
A little more detail on mongo:
From the command line, type:
- Code: Select all
mongo tworld
('tworld' may be different depending on your tworld.conf settings.)
This opens a mongo shell:
- Code: Select all
> db.players.find()
{ "_id" : ObjectId("51da6c1f7e06a455a670c108"), "admin" : true, "createtime" : ISODate("2013-07-08T07:37:03.597Z"), "desc" : "an ordinary explorer.", "email" : "you@example.com", "name" : "Admin", "namekey" : "admin", "password" : BinData(0,"eA=="), "pronoun" : "it", "pwsalt" : BinData(0,"YWQ5ODNkNTdhNzhkZTI1OA=="), "scid" : ObjectId("51da6c1f7e06a455a670c109") }
{ "_id" : ObjectId("51da6e207e06a456bfe031ff"), "createtime" : ISODate("2013-07-08T07:45:36.845Z"), "desc" : "an ordinary explorer.", "email" : "user@example.com", "name" : "User", "namekey" : "user", "password" : BinData(0,"ZWU5Y2Y5MGNjNzk5ZDEwZDBhYjI1OGMzNmRiMjdhNGM4YjE0OGQwYg=="), "plistid" : ObjectId("51da6e207e06a456bfe03202"), "pronoun" : "it", "pwsalt" : BinData(0,"ZGU3Nzc1NjM3NzYxZDIzYQ=="), "scid" : ObjectId("51da6e207e06a456bfe03200") }
Formatted for readability, and the key lines marked with arrows:
- Code: Select all
> db.players.find()
{
"_id" : ObjectId("51da6c1f7e06a455a670c108"),
"admin" : true,
"createtime" : ISODate("2013-07-08T07:37:03.597Z"),
"desc" : "an ordinary explorer.",
"email" : "you@example.com",
"name" : "Admin",
"namekey" : "admin",
"password" : BinData(0,"eA=="),
"pronoun" : "it",
"pwsalt" : BinData(0,"YWQ5ODNkNTdhNzhkZTI1OA=="),
"scid" : ObjectId("51da6c1f7e06a455a670c109")
}
{
"_id" : ObjectId("51da6e207e06a456bfe031ff"),
"createtime" : ISODate("2013-07-08T07:45:36.845Z"),
"desc" : "an ordinary explorer.",
"email" : "user@example.com",
-> "name" : "User",
"namekey" : "user",
-> "password" : BinData(0,"ZWU5Y2Y5MGNjNzk5ZDEwZDBhYjI1OGMzNmRiMjdhNGM4YjE0OGQwYg=="),
"plistid" : ObjectId("51da6e207e06a456bfe03202"),
"pronoun" : "it",
-> "pwsalt" : BinData(0,"ZGU3Nzc1NjM3NzYxZDIzYQ=="),
"scid" : ObjectId("51da6e207e06a456bfe03200")
}
The arrow-marked lines above yield the data to be written to admin:
- Code: Select all
> db.players.update( {"name":"Admin"},
{ $set: {"pwsalt":BinData(0,"ZGU3Nzc1NjM3NzYxZDIzYQ==")} } )
> db.players.update( {"name":"Admin"},
{ $set: {"password":BinData(0,"ZWU5Y2Y5MGNjNzk5ZDEwZDBhYjI1OGMzNmRiMjdhNGM4YjE0OGQwYg==")} } )
These values allowed me to log in as Admin using the password 'mypass'. I'm not sure whether the same values will work for your installation, or if you'll have to do the whole create-User-and-copy-data process yourself; I suspect the latter.