openware / peatio

Open-source crypto currency exchange software (https://openware.com)
https://www.openware.com
MIT License
1.04k stars 624 forks source link

SMS verification code does not come #1885

Closed UfukAntep closed 5 years ago

UfukAntep commented 5 years ago

Hi,

I open a new membership. SMS verification code does not come. I made changes to the sections below. I deleted the "changeme" parts and added my own information. But the error did not recover.

TWILIO_ACCOUNT_SID=changeme TWILIO_AUTH_TOKEN=changeme TWILIO_PHONE_NUMBER=changeme

Thank you.

andyduong1920 commented 5 years ago

On which environment @UfukAntep ? The SMS feature was disable as default on Development mode, if you want to test your feature, just enable it in here barong_app/config/initializers/fake_twilio.rb

UfukAntep commented 5 years ago

Hello, I'm testing in my own local area. I went to the address you said. How do I activate? Is it enough to write my own Client instead of FakeSms?

if Rails.env.development? Twilio::REST::Client = FakeSMS end

Thank you.

andyduong1920 commented 5 years ago

Just comment all of that @UfukAntep

UfukAntep commented 5 years ago

Thank you problem solved