Hello,
first time poster. I’m using the REST API to create guest accounts. Lately I wanted to use the random_password feature but with no success:
( user is Super Administrator )
- I create a guest account from the admin panel then view it and can read its password - All GOOD.
- I create a guest using the API. The guest is created ( server answers 201 ). No password field is specified. When accessing the admin panel I get “Error decrypting string” if the show password options is selected.
This is my user when calling /guest in POST
{
"create_time": "",
"current_state": "",
"do_expire": 0,
"email": "test.testgmail.com",
"enabled": true,
"expire_time": "",
"mac": "",
"notes": "",
"role_id": 2,
"simultaneous_use": 0,
"sponsor_email": "test1.test@gmail.com",
"sponsor_name": "test",
"start_time": "",
"username": "test.test@gmail.com",
"visitor_company": "visitor company",
"visitor_name": "visitor name"
}
The error message is attached herewith.
I would like that a password would be randomly generated for every account and was visible from the admin panel in the “Manage Guest Accounts” section. I’d also like to know if it were possible to use your API to generate a random password.
Thank you for your support,
Best Regards,
Christopher Lacapra