Generate Password¶
Description¶
When creating a new CM-Well user, you can use the generate-password API to generate a random password and its encrypted value. This password can be changed later if required (see Change Password API).
Syntax¶
URL: <CMWellHost>/_auth?op=generate-password
REST verb: GET
Mandatory parameters: None.
Code Example¶
Call¶
curl <cm-well-host>/_auth?op=generate-password
Results¶
{"password":"t0OlrZGEM9","encrypted":"$2a$10$7AnXsjks.IZXTbpRiAGN4OQItwiz4sgxM49lvTiCjWgOhbbOQkg2m"}