Last post Jan 24, 2018 10:29 AM by UrielMhezzek
Jan 17, 2018 04:24 PM|UrielMhezzek|LINK
I'm building a backend for an API. I just want to check the password for violations of duty like length or digits with api call. I don't want to change the password. second challenge is that I can't allow asyncrony in the function, because I use fluentvalidation.
Jan 17, 2018 04:59 PM|PatriceSc|LINK
Ok we know what you want to do but I'm not sure to get which problem you have Why would you have to change the password if you don't want to? You could perhaps use Task.FromResult if the exposed API needs to be async.
Edit: this is a domain password and you are trying to change it ??? If not conformant changing the password should fail anyway. Or are you using ASP.NET Identity ? We ned some more context to understand the problem (starting with knowing which password store
you are using).
Jan 18, 2018 03:13 AM|Edward Z|LINK
Could you share us what you want to achieve, what you have tried, and what issue did you get?
It seems you are using fluentvalidation, do you mean you do not know how to use it or what issue do you get while using it.
For fluentvalidation, I suggest you try to refer link below to use it:
Jan 18, 2018 08:28 AM|UrielMhezzek|LINK
Thank to you for your help. The answer is simple. I used as Frontend Angular. I want to check the requirements from Password diffilculty on focus lost in my forms registration (on user exists at this moment), user-changing and admin-changing. i dont want
to build a secondary verification on my frontend. because changing passwort should be possible with a simple api-call without frontend.
Jan 18, 2018 08:33 AM|PatriceSc|LINK
So you want to make an Ajax call from Angular ? Try perhaps
Else please be explicit about the problem you have. We don't know your background and it would be best to focus on your actual problem rather than to discuss something general that wouldn't help to solve your - unknown - problem.
Jan 24, 2018 10:29 AM|UrielMhezzek|LINK
the problem is not the call. the problem is the check of the new password.
i uses now a selfmade-test to check the password.