southbridgeio / redmine_2fa

Two-factor (sms/telegram) authentication for Redmine
https://southbridge.io
MIT License
42 stars 17 forks source link

How to make SMS work? #81

Open oliu321 opened 4 years ago

oliu321 commented 4 years ago

Hi, I tried to patch the sms_command as instructed, only 2 differences, I put it under default section (instead of production) and I am using twilio (in US it's a popular choice), now I did test the curl command in bash and it works. But when I tried to login, the sms was not sent out. I did restart the apache. The system may be trying to tell me that there is an error but probably I can't see it because of #80

oliu321 commented 4 years ago

Ok, after I manually copy the value to the sms_sender.rb and directly assign the value of the command now it works. So basically it's working for me for now, although a very customized version.

Also I tried to put the value under the production section too but doesn't work neither. All I get from command that way is "echo ..." which based on code looks like the plugin failed to find configuration.