mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 21:03:25 +00:00 
			
		
		
		
	Cleanup org license
This commit is contained in:
		
							parent
							
								
									ca2815411f
								
							
						
					
					
						commit
						6fbcf13b7f
					
				|  | @ -446,26 +446,24 @@ internal class Program | ||||||
|         Set(type, license, "Use2fa", true); |         Set(type, license, "Use2fa", true); | ||||||
|         Set(type, license, "UseApi", true); |         Set(type, license, "UseApi", true); | ||||||
|         Set(type, license, "UseResetPassword", true); |         Set(type, license, "UseResetPassword", true); | ||||||
|         Set(type, license, "UseCustomPermissions", true); |  | ||||||
|         Set(type, license, "MaxStorageGb", storage == 0 ? Int16.MaxValue : storage); |         Set(type, license, "MaxStorageGb", storage == 0 ? Int16.MaxValue : storage); | ||||||
|         Set(type, license, "SelfHost", true); |         Set(type, license, "SelfHost", true); | ||||||
|         Set(type, license, "UsersGetPremium", true);         |         Set(type, license, "UsersGetPremium", true);         | ||||||
|  |         Set(type, license, "UseCustomPermissions", true); | ||||||
|  |         Set(type, license, "Version", 16); | ||||||
|  |         Set(type, license, "Issued", DateTime.UtcNow); | ||||||
|  |         Set(type, license, "Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1)); | ||||||
|  |         Set(type, license, "Expires", DateTime.UtcNow.AddYears(100)); | ||||||
|  |         Set(type, license, "ExpirationWithoutGracePeriod", DateTime.UtcNow.AddYears(100)); | ||||||
|         Set(type, license, "UsePasswordManager", true); |         Set(type, license, "UsePasswordManager", true); | ||||||
|         Set(type, license, "UseSecretsManager", true); |         Set(type, license, "UseSecretsManager", true); | ||||||
|         Set(type, license, "SmSeats", Int32.MaxValue); |         Set(type, license, "SmSeats", Int32.MaxValue); | ||||||
|         Set(type, license, "SmServiceAccounts", Int32.MaxValue); |         Set(type, license, "SmServiceAccounts", Int32.MaxValue); | ||||||
|         Set(type, license, "Version", 15); //This is set to 15 to use AllowAdminAccessToAllCollectionItems can be changed to 13 to just use Secrets Manager |         Set(type, license, "UseRiskInsights", true); | ||||||
|         Set(type, license, "Issued", DateTime.UtcNow); |         Set(type, license, "LimitCollectionCreationDeletion", true); | ||||||
|         Set(type, license, "Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1)); |         Set(type, license, "AllowAdminAccessToAllCollectionItems", true); | ||||||
|         Set(type, license, "Expires", DateTime.UtcNow.AddYears(100)); |  | ||||||
|         Set(type, license, "Trial", false); |         Set(type, license, "Trial", false); | ||||||
|         Set(type, license, "LicenseType", Enum.Parse(licenseTypeEnum, "Organization")); |         Set(type, license, "LicenseType", Enum.Parse(licenseTypeEnum, "Organization")); | ||||||
|         Set(type, license, "LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now |  | ||||||
|         Set(type, license, "AllowAdminAccessToAllCollectionItems", true); |  | ||||||
|         Set(type, license, "UseRiskInsights", true); |  | ||||||
|         Set(type, license, "UseOrganizationDomains", true); |  | ||||||
|         Set(type, license, "UseAdminSponsoredFamilies", true); |  | ||||||
|         Set(type, license, "UseRiskInsights", true); |  | ||||||
|         Set(type, license, "UseOrganizationDomains", true); |         Set(type, license, "UseOrganizationDomains", true); | ||||||
|         Set(type, license, "UseAdminSponsoredFamilies", true); |         Set(type, license, "UseAdminSponsoredFamilies", true); | ||||||
|         Set(type, license, "Hash", Convert.ToBase64String((Byte[])computeHash.Invoke(license, [])!)); |         Set(type, license, "Hash", Convert.ToBase64String((Byte[])computeHash.Invoke(license, [])!)); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user