Remove mention of FreeOAuth

This commit is contained in:
Shivashis Padhi 2023-02-06 16:02:47 +05:30
parent c5d95cec61
commit 08b1dc4ea8
No known key found for this signature in database
GPG key ID: 143DF245BADA7265

View file

@ -60,11 +60,11 @@ export function loginOptions(config: ClientConfig, license: ClientLicense) {
const isLicensed = license.IsLicensed === 'true';
const samlEnabled = config.EnableSaml === 'true' && isLicensed && license.SAML === 'true';
const gitlabEnabled = config.EnableSignUpWithGitLab === 'true';
const isMinServerVersionForFreeOAuth = isMinimumServerVersion(config.Version, 7, 6);
const isMinServerVersionForCloudOAuthChanges = isMinimumServerVersion(config.Version, 7, 6);
let googleEnabled = false;
let o365Enabled = false;
let openIdEnabled = false;
if (isMinServerVersionForFreeOAuth) {
if (isMinServerVersionForCloudOAuthChanges) {
googleEnabled = config.EnableSignUpWithGoogle === 'true';
o365Enabled = config.EnableSignUpWithOffice365 === 'true';
openIdEnabled = config.EnableSignUpWithOpenId === 'true';