refactor: enable GitLab and Bitbucket unconditionally, matching GitHub

The conditional !empty() guard was redundant for sign-in: account.php
already rejects empty appId/secret with the same PROJECT_PROVIDER_DISABLED
exception immediately after the Enabled check. Matches the adjacent
githubEnabled line instead.
This commit is contained in:
harsh mahajan committed 2026-08-25 17:32:07 +05:30
1 parent 6cdb60c38b
commit 982340e7f0
1 file changed
+2 -2
+2 -2
View File
@@ -59,10 +59,10 @@ $console = [
'githubSecret' => System::getEnv('_APP_CONSOLE_GITHUB_SECRET', ''),
'githubAppid' => System::getEnv('_APP_CONSOLE_GITHUB_APP_ID', ''),
// Distinct from _APP_VCS_*, which powers repository integration, not sign-in
'gitlabEnabled' => !empty(System::getEnv('_APP_CONSOLE_GITLAB_APP_ID', '')),
'gitlabEnabled' => true,
'gitlabSecret' => System::getEnv('_APP_CONSOLE_GITLAB_SECRET', ''),
'gitlabAppid' => System::getEnv('_APP_CONSOLE_GITLAB_APP_ID', ''),
'bitbucketEnabled' => !empty(System::getEnv('_APP_CONSOLE_BITBUCKET_APP_ID', '')),
'bitbucketEnabled' => true,
'bitbucketSecret' => System::getEnv('_APP_CONSOLE_BITBUCKET_SECRET', ''),
'bitbucketAppid' => System::getEnv('_APP_CONSOLE_BITBUCKET_APP_ID', ''),
],