system
July 2, 2019, 12:53pm
1
Migrated from Redmine #397 | Author: Arthur Lima
Status: New | Priority: Immediate, there is BUG! | Created: 2019-07-02
There’s a way to create a new client using the API (method addClient) and create a password for the client?
I’m using the extra feature to clients have password, but I’m not finding a way to create a client with their password at the same time.
Redmine Admin wrote:
please call signUpClient($clientData)
where clientData should be
{
name: "Frances T. Perez",
phone: "+1502-810-4521",
email: "FrancesTPerez@teleworm.us",
address1: "3872 Earnhardt Drive",
address2: "Louisville, KY 40219",
city: Louisville,
zip: 3872,
password : 123456
}
It will send email to client with his password
Arthur Lima wrote:
Do I use in url https://user-api.simplybook.me/admin ? There’s nothing about it in API docs
Redmine Admin wrote:
yes, this method is not in docs yet
Arthur Lima wrote:
Now I’m having a method not found error :C
method: signUpClient
code: -32601
message: “Method not found”
Redmine Admin wrote:
Forgot to tell, it is in public API not admin
Arthur Lima wrote:
Yay! Now it’s working! Thank you very much.
There’s a date to update the docs?
system
November 6, 2019, 9:22am
9
Guillaume Cambon wrote:
Redmine Admin wrote:
please call signUpClient($clientData)
It will send email to client with his password
I got it working, thanks.
Is there a way to use this method without having an email sent to the newly created user?
system
November 6, 2019, 9:23am
10
Redmine Admin wrote:
the only way to do this is to alter your email settings in Email and SMS settings. But this will affect all bookings
system
November 6, 2019, 9:28am
11
Guillaume Cambon wrote:
Where do I find such settings? At path @/settings/templates@ I find options relatives to service subscriptions, comments, cancelling and so on… but nothing about actual registration.
system
November 6, 2019, 9:30am
12
Redmine Admin wrote:
Go to Settings → Email and SMS settings in admin interface of your company
system
November 6, 2019, 9:39am
13
Guillaume Cambon wrote:
Sorry, but this is already the screen I was looking at, and I can’t find such setting. Could you be more explicit?
system
November 6, 2019, 9:57am
14
Redmine Admin wrote:
oh.. sorry for misunderstanding. Yes, you are in the right place. It is impossible to turn off such emails unfortunately.
system
November 6, 2019, 10:00am
15
Guillaume Cambon wrote:
Thanks for clarifying
How about proceeding in two steps:
registering the user with a fake email address
updating the user’s email address with the correct one?
That way, this email would still be sent, but the user would not receive it, right?
system
November 6, 2019, 10:11am
16
Redmine Admin wrote:
Well, you can try this workaround of course. But it is something which is NOT recommended by our dev team.
system
November 6, 2019, 10:16am
17
Guillaume Cambon wrote:
I will try thanks.
Another question - can I edit the body of that email?
system
November 6, 2019, 10:20am
18
Redmine Admin wrote:
Yes, it is last template on Email and SMS settings page called " New user login notification"