I’m working with the ionic platform apps.ionic.io for an apps user system. I want to build a password reset functionality. As I have it implemented and the docs http://docs.ionic.io/docs/user-usage seem to describe, a user must be authenticated to then call:
var user = Ionic.User.current();
At which point you can set the password: user.details.password = “secret”; or you can reset it: user.resetPassword().then(success, failure);
The problem is neither of these would work for a forgot my password situation as we want to send an email to the user for a password reset, if the user must login first that doesn’t work. The only way around this I see is to load a user by user-id which is NOT username/email, its an auto generated key. The only way I see making that work is a database to store this key associated with an email, which entirely defeats the purpose of using this user system. Am I missing something?