rename provider param in config

This commit is contained in:
prateek banga
2023-08-07 15:54:00 +05:30
parent 5baa0d674a
commit 9057a50a10
9 changed files with 41 additions and 41 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class V15 extends Migration
['email', 'anonymous'],
\array_map(
fn ($value) => "oauth-" . $value,
\array_keys(Config::getParam('providers', []))
\array_keys(Config::getParam('authProviders', []))
)
);
+1 -1
View File
@@ -126,7 +126,7 @@ class V16 extends Migration
*/
$authProviders = $document->getAttribute('authProviders', []);
foreach (Config::getParam('providers') as $provider => $value) {
foreach (Config::getParam('authProviders') as $provider => $value) {
if (!$value['enabled']) {
continue;
}
@@ -315,7 +315,7 @@ class Project extends Model
}
// Providers
$providers = Config::getParam('providers', []);
$providers = Config::getParam('authProviders', []);
$providerValues = $document->getAttribute('authProviders', []);
$projectProviders = [];