Checking username and password realtime with api

(Hosein Naseri) #1

I want to sign up my users using my application. So I need to use api to sign them up. However now I face a challenge. How can I check the user name availability and password strength with discourse in real time?
right now the user needs to write down a username and password and click on sign up, and if it fails, change them again and click sign up for another time.

(Hosein Naseri) #2

I think I found the username and email part. However still I’d not found any api call to check password.
Any idea?

(Blake Erickson) #3

There is not an extra api endpoint for checking password strength, just the user create call that will return an error if the password does not meet requirements.

This is logic you will probably have to duplicate in your code.