Skip to content

Commit 0026467

Browse files
authored
Merge pull request #174 from topcoder-platform/issues-171
Issues-171:removed 'Fix', not required any more
2 parents 662e96e + 9549896 commit 0026467

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

config/vanilla/bootstrap.early.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,6 @@
9797
saveToConfig('Recaptcha.PublicKey', getenv('RECAPTCHA_PLUGIN_PUBLIC_KEY'), false);
9898
}
9999

100-
101-
// Fix: OAuth 2 SSO should be inactive and not by default. It should be removed later.
102-
if ($SQL->getWhere('UserAuthenticationProvider', ['AuthenticationKey' => 'oauth2'])->numRows() > 0) {
103-
$SQL->update('UserAuthenticationProvider')
104-
->set('Active', 0)
105-
->set('IsDefault',0)
106-
->where('AuthenticationKey' , 'oauth2')->put();
107-
}
108-
109-
// Add Topcoder User Authentication Provider.
110-
// SignInUrl/SignOutUrl should be set in Topcoder plugin's setup; otherwise they couldn't be updated in DB
111-
if ($SQL->getWhere('UserAuthenticationProvider', ['AuthenticationKey' => 'topcoder'])->numRows() == 0) {
112-
$SQL->insert('UserAuthenticationProvider', [
113-
'AuthenticationKey' => 'topcoder',
114-
'AuthenticationSchemeAlias' => 'topcoder',
115-
'Name' => 'topcoder',
116-
'Active' => 1,
117-
'IsDefault' => 1
118-
]);
119-
}
120-
121100
// Fix: Add the 'topcoder' role type in Role Table. It should be removed after upgrading existing DB.
122101
// The Topcoder plugin's setup method will upgrade DB during Vanilla installation
123102
$SQL->query('alter table GDN_Role modify Type enum(\'topcoder\', \'guest\', \'unconfirmed\', \'applicant\', \'member\', \'moderator\', \'administrator\')');

0 commit comments

Comments
 (0)