28 lines
1,006 B
C#
Executable file
28 lines
1,006 B
C#
Executable file
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WebApplication.Services
|
|
{
|
|
// This class is used by the application to send Email and SMS
|
|
// when you turn on two-factor authentication in ASP.NET Identity.
|
|
// For more details see this link https://go.microsoft.com/fwlink/?LinkID=532713
|
|
public class AuthMessageSender : IEmailSender, ISmsSender
|
|
{
|
|
public Task SendEmailAsync(string email, string subject, string message)
|
|
{
|
|
// Plug in your email service here to send an email.
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task SendSmsAsync(string number, string message)
|
|
{
|
|
// Plug in your SMS service here to send a text message.
|
|
return Task.FromResult(0);
|
|
}
|
|
}
|
|
}
|