1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

verify and disable premium from license check

This commit is contained in:
Kyle Spearrin
2017-08-16 17:08:20 -04:00
parent cdc5310fc3
commit b14f6d080e
8 changed files with 54 additions and 34 deletions

View File

@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Hosting;
using System;
using Bit.Core.Models.Business;
using System.Threading.Tasks;
namespace Bit.Core.Services
{
@ -27,9 +28,9 @@ namespace Bit.Core.Services
return true;
}
public bool VerifyUserPremium(User user)
public Task<bool> VerifyUserPremiumAsync(User user)
{
return user.Premium;
return Task.FromResult(user.Premium);
}
public byte[] SignLicense(ILicense license)