mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

Question: How to reset password sample #641

Open PhilippeCorreges opened 5 years ago

PhilippeCorreges commented 5 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

Please add a description for your issue:

Hello, I am in the process of developing the password rest functionality client side and I am wondering where I could find the same previously provided by mean expert official on loopback sdk builder. I am pretty sure this sample has this feature in it. Am I right?

Otherwise I am ok for a nice sample :)

gezquinndesign commented 5 years ago

https://loopback.io/doc/en/lb3/User-REST-API.html#reset-password

Hope that helps. As long as you have a User (or User-based) model, the SDK builder will provide the same functionality included in the loopback base model.

PhilippeCorreges commented 5 years ago

Hi @gezquinndesign. Thanks for that. Unfortunately that is not of a big help for me. I am a too much newbee :)

gezquinndesign commented 5 years ago

No worries. Have you already used the SDK to implement a login feature? If so, you can use the same feature to reset passwords.

PhilippeCorreges commented 5 years ago

Yup, of course. Everything is ok. I am stuck in front of this. I'll tell you as I need to master this. I nonetheless remember there was a sample somewhere ....

Enjoy your day.

gezquinndesign commented 5 years ago

I only ask because they are both in the same API section https://github.com/mean-expert-official/loopback-sdk-builder/wiki/5.-Usage-Examples

So in the above example you could set up a method that uses this.accountApi.resetPasswordRequest() to setup the request and this.accountApi.resetAccountPassword() to actually change it.

Good luck.

PhilippeCorreges commented 5 years ago

Hi @gezquinndesign

I'll tell you once done. Thanks!

PhilippeCorreges commented 5 years ago

Hi @gezquinndesign i do not see the above methods in the sample URL you provided. Am I doing wrong? I nonetheless created a stackoverflow for that: https://stackoverflow.com/questions/55635072/how-to-implement-reset-password-with-loopback-frameword-and-sdk-builder-client-s

Here is not the good place I think. If someone could help me on stack, please.

Thanks in advance and regards.

gezquinndesign commented 5 years ago

I've responded on StackOverflow. Hopefully it is helpful for you.