-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I tried to register my own SMS Provider. I will sent a Pull Request later on, when I've got it to work, but for now the implementation is hidden in an internal class.
I've implemented your BaseSMSPRovider-class with the following code:
`using PerplexLibSMS.Interfaces;
using PerplexLibSMS.SMSApis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace _2FA.Code
{
public class TwoFactorSMSPerplexProvider : Orc.Fortress.SMSProvider.BaseSMSProvider
{
public override void SendSms(string number, string message)
{
ISMSApi api = new CMProvider();
api.From = "+31263830734";
api.To = new List() {number};
var result = api.Send(message);
}
}
}`
But then what? I expected that maybe in Umbraco the dropdownlist with "Active SMS Providers" would contain "TwoFactorSMSPerplexProvider" or something like that. Also I tried to set a value like 'TwoFactorSMSPerplexProvider' into the table FortressSettings but that didn't work either.
Can you help me out?
Thanks, Jeffrey