Hi all. I am pretty new to casdoor and just integrated Twillio provider. It is all working but the message got some symbols. Does anyone know how to fix this ?
Thanks

Hi all. I am pretty new to casdoor and just integrated Twillio provider. It is all working but the message got some symbols. Does anyone know how to fix this ?
Thanks

I don't have a twilio key to test, can you debug the code?
Sure. I'll try and update you
it seems to be a simple string manipulation issue
My bad. this was supposed be a string template for the go code. I thought it was about the Twillio template id.
Possible improvement,
Make Template Code field required
Or,
Not to format the code if c.template is empty: https://github.com/casdoor/go-sms-sender/blob/master/twilio.go#L50
Do you want me to add the pull req ? Probably will need to add it to the other provider files as well.

"Not to format the code if c.template is empty" this solution looks better. plz make a PR
Sure will do
Sign up to reply, like and follow topics.
Want to read more? Browse other topics in Casdoor or view latest topics.