what programming language are you using?
You asked a similar question earlier and the answer is still the same. Learn a bit more about programming. The solution will be in the language you use and not in MongoDB. Mongo is only a database, which supports your application by persisting data over time. In other words, the "forget password" solution won't be in Mongo, it will be in your application. Only the password will be in Mongo (and hopefully encrypted).
using PHP. Sorry i didn't mention my programming language language
using PHP. Sorry i didn't mention my programming language language
What Scott suggested earlier is correct .. designing a "forgot password" workflow is an application or user experience (UX) issue rather than something specific to MongoDB. It sounds like you already have a general idea of what you want to do (reset the password and send a new one time password by email to the registered address for the account).
If you're looking for specific examples to write your own function I would suggest searching for "UX design patterns" or reviewing some of the discussions onux.stackexchange.com:
http://ux.stackexchange.com/ search?q=forgot+password
http://ux.stackexchange.com/
Alternatively, you might want to consider using a PHP framework which includes account management features already. An existing framework can save you some time (and heartache) with implementing common functionality. Choice of framework really depends on personal opinion, but as a starting point you could look at those with known MongoDB integration: http://docs.mongodb.org/ ecosystem/drivers/php- libraries/.
If you're stuck on a specific problem using the MongoDB PHP driver, you could post a snippet of code here and we'll try to help.
Good points Stephen.
Just as an example, we are using Symfony with Doctrine ODM along with the FOSS user bundle, as a starting point.
|
댓글 없음:
댓글 쓰기