dropping GCM support
This commit is contained in:
parent
02160f1eaf
commit
df9ff16c5c
36 changed files with 6228 additions and 149 deletions
|
|
@ -708,9 +708,13 @@ namespace Yavsc.Controllers
|
|||
async Task<IdentityResult> DeleteUser(string userId)
|
||||
{
|
||||
ApplicationUser user = await _userManager.FindByIdAsync(userId);
|
||||
_dbContext.GCMDevices.RemoveRange( _dbContext.GCMDevices.Where(g => g.DeviceOwnerId == userId ));
|
||||
// TODO add an owner to maillings
|
||||
_dbContext.MailingTemplate.RemoveRange(_dbContext.MailingTemplate.Where( t=>t.ManagerId == userId ));
|
||||
|
||||
_dbContext.DeviceDeclaration.RemoveRange( _dbContext.DeviceDeclaration.Where(g => g.DeviceOwnerId == userId ));
|
||||
|
||||
foreach (var template in _dbContext.MailingTemplate.Where( t=>t.ManagerId == userId ))
|
||||
{
|
||||
template.ManagerId = template.SuccessorId;
|
||||
}
|
||||
|
||||
return await _userManager.DeleteAsync(user);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using Yavsc.Models.Workflow;
|
||||
using Yavsc.Models.Identity;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
|
|
@ -39,7 +38,7 @@ namespace Yavsc.Controllers
|
|||
private GoogleAuthSettings _googleSettings;
|
||||
|
||||
private PayPalSettings _payPalSettings;
|
||||
private IGoogleCloudMessageSender _GCMSender;
|
||||
private IYavscMessageSender _GCMSender;
|
||||
private SIRENChecker _cchecker;
|
||||
private IStringLocalizer _SR;
|
||||
private CompanyInfoSettings _cinfoSettings;
|
||||
|
|
@ -51,7 +50,7 @@ namespace Yavsc.Controllers
|
|||
UserManager<ApplicationUser> userManager,
|
||||
SignInManager<ApplicationUser> signInManager,
|
||||
IEmailSender emailSender,
|
||||
IGoogleCloudMessageSender GCMSender,
|
||||
IYavscMessageSender GCMSender,
|
||||
IOptions<SiteSettings> siteSettings,
|
||||
IOptions<GoogleAuthSettings> googleSettings,
|
||||
IOptions<PayPalSettings> paypalSettings,
|
||||
|
|
@ -292,11 +291,6 @@ namespace Yavsc.Controllers
|
|||
{
|
||||
return View();
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult AddMobileApp(GoogleCloudMobileDeclaration model)
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> SetGoogleCalendar(string returnUrl, string pageToken)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue