mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-05 20:16:51 +02:00
identity: disable 2FA by SMS for trial users
This commit is contained in:
1 parent
20eec79cef
commit
7dcda17474
1 file changed
+1
-3
@@ -52,9 +52,7 @@ namespace Streetwriters.Identity.Services
|
||||
public static bool IsUserPremium(string clientId, User user)
|
||||
{
|
||||
var status = GetUserSubscriptionStatus(clientId, user);
|
||||
string[] allowedClaims = { "trial", "premium", "premium_canceled" };
|
||||
|
||||
return status == SubscriptionType.TRIAL || status == SubscriptionType.PREMIUM || status == SubscriptionType.PREMIUM_CANCELED;
|
||||
return status == SubscriptionType.PREMIUM || status == SubscriptionType.PREMIUM_CANCELED;
|
||||
}
|
||||
|
||||
public static Claim SubscriptionTypeToClaim(string clientId, SubscriptionType type)
|
||||
|
||||
Reference in new issue
Block a user