How to send sms to any new registerd user


#1

I dont know if any body could help with how to go about it having an sms sent to any new user reguaterd.
Anybody with the code can help out


(Sergi Almacellas Abellana) #2

There is the authentication_sms module which allows to use an sms code as two factor autentication.

Is that what you are searching for?


(Nicolas Évrard) #3

What do you mean by that?


#4

When a user is register i mean a party it send sms like “welcome to tryton”


#5

This is for user login i want tge one for user creation


(Maxime Richez) #6

Maybe this could help ? https://github.com/LavaLab/trytond-twilio-messages


#7

I think TS means that when a new user is created, you can click on the “reset password” button. The user then gets an email with a new password. But instead sending an email, TS wants to send a SMS to the user with a password.

So IMO, when you add an employee to the user, you have the party, so you can have a contact_mechanism which can have a phonenumber. That phonenumber can be used to send an SMS to. Eventually to make things way easier, you can just add a phonenumber-field to the user form and use that for sending SMS. This is done with the authentication_sms_module which Sergi mentioned. The only thing you have to do, is digging a bit through the code of res_user (correct me if I’m woring) to find how the reset-email-button is working and adapt that to send an SMS instead of an email.


#8

Ok i dont know how to actualy install modules to the server if you could help with guide am using unbutu for the server


(Sergi Almacellas Abellana) #9

You can copy the module source on the modules folder into your trytond instalation directory or install the modules as python packages (from pypi or downloading the sorces and executing python setup.py install)


#10

i did that but unable to see it in the modules activation box


(Sergi Almacellas Abellana) #11

You should update any module to refresh the modules list or execute tryton-admin with the --update-module-list flag


#12

can you be more simple so i can understand


(Maxime Richez) #13

in trytond/bin

trytond-admin -c <config file> -d <database name> -u <module name>


#14

This is What i was trying to say


#15

This would also work for gnuhealth becauae i did it and i was getting so error