Merge pull request #536 from SychevIgor/rudementsinidentity
drop rudiments from identity api
This commit is contained in:
parent
2fb1349094
commit
97f81c2939
@ -1,9 +0,0 @@
|
|||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopOnContainers.Services.Identity.API.Services
|
|
||||||
{
|
|
||||||
public interface IEmailSender
|
|
||||||
{
|
|
||||||
Task SendEmailAsync(string email, string subject, string message);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopOnContainers.Services.Identity.API.Services
|
|
||||||
{
|
|
||||||
public interface ISmsSender
|
|
||||||
{
|
|
||||||
Task SendSmsAsync(string number, string message);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopOnContainers.Services.Identity.API.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 http://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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -73,8 +73,6 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
|
|||||||
checks.AddSqlCheck("Identity_Db", Configuration["ConnectionString"], TimeSpan.FromMinutes(minutes));
|
checks.AddSqlCheck("Identity_Db", Configuration["ConnectionString"], TimeSpan.FromMinutes(minutes));
|
||||||
});
|
});
|
||||||
|
|
||||||
services.AddTransient<IEmailSender, AuthMessageSender>();
|
|
||||||
services.AddTransient<ISmsSender, AuthMessageSender>();
|
|
||||||
services.AddTransient<ILoginService<ApplicationUser>, EFLoginService>();
|
services.AddTransient<ILoginService<ApplicationUser>, EFLoginService>();
|
||||||
services.AddTransient<IRedirectService, RedirectService>();
|
services.AddTransient<IRedirectService, RedirectService>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user