https://github.com/jamalsoueidan/authorizeextension
This is extension server side for SmartFoxServer
https://github.com/jamalsoueidan/authorizeextension
Last synced: 13 days ago
JSON representation
This is extension server side for SmartFoxServer
- Host: GitHub
- URL: https://github.com/jamalsoueidan/authorizeextension
- Owner: jamalsoueidan
- Created: 2011-08-17T23:52:25.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-08-22T17:16:17.000Z (almost 14 years ago)
- Last Synced: 2025-06-28T08:14:23.074Z (18 days ago)
- Language: Java
- Homepage:
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is extension for SmartFoxServer.
It allow for guest to login or for registered users.
You must change the database name in the AuthorizeExtension.java.
mongo = new Mongo("localhost");
db = mongo.getDB( "games_development" );
users = db.getCollection("users");Do what you want :-)
It return the generate session back to the Flash API Client, use it for whatever you want later in the game.
It only check against the DB if the user enter password.
This is how my collection looks like.
{ "_id" : ObjectId("4e4c1b6853aaa95c3dab8ac9"), "nickname" : "jamal", "email" : "[email protected]", "password_digest" : "b80587d3ea099bba190ed8111f38121dc3514460", "session" : "2E931AAA9086D3D81E2C640F667B38BD" }
{ "_id" : ObjectId("4e4c5580c2e6d19c17593612"), "nickname" : "test", "session" : "16E9C076E1BC490363EB4690317AC23C", "is_guest" : true }You can find me at SmartFoxServer.com forum if you need any help :D
Thanks :)