jamalsoueidan / authorizeextension Goto Github PK
View Code? Open in Web Editor NEWThis is extension server side for SmartFoxServer
This is extension server side for SmartFoxServer
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.