Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to reset password sample #641

Open
2 of 6 tasks
PhilippeCorreges opened this issue Mar 25, 2019 · 8 comments
Open
2 of 6 tasks

Question: How to reset password sample #641

PhilippeCorreges opened this issue Mar 25, 2019 · 8 comments

Comments

@PhilippeCorreges
Copy link

What type of issue are you creating?

  • Bug
  • Enhancement
  • Question

What version of this module are you using?

  • 2.0.10 (Stable)
  • 2.1.0-rc.n (2.1 Release Candidate n)
  • Other

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
Copy link

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
Copy link
Author

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

@gezquinndesign
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

Hi @gezquinndesign

I'll tell you once done.
Thanks!

@PhilippeCorreges
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants