mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-24 09:50:45 -06:00
This commit is contained in:
parent
dba24d2dee
commit
babf462bcf
@ -143,10 +143,10 @@ class UpgradeDatabase extends Command
|
||||
$result = Artisan::output();
|
||||
echo $result;
|
||||
|
||||
$this->line('Now installing OAuth2 keys...');
|
||||
Artisan::call('passport:install');
|
||||
$result = Artisan::output();
|
||||
echo $result;
|
||||
// $this->line('Now installing OAuth2 keys...');
|
||||
// Artisan::call('passport:install');
|
||||
// $result = Artisan::output();
|
||||
// echo $result;
|
||||
|
||||
$this->line('Done!');
|
||||
}
|
||||
|
@ -26,15 +26,15 @@ use FireflyIII\Ldap\Rules\UserDefinedRule;
|
||||
|
||||
# select ldap model based on configuration option
|
||||
switch(env('LDAP_DIALECT')) {
|
||||
case 'OpenLDAP':
|
||||
$ldapModel = class_exists(LdapRecord\Models\OpenLDAP\User::class) ? LdapRecord\Models\OpenLDAP\User::class : '';
|
||||
break;
|
||||
case 'ActiveDirectory':
|
||||
$ldapModel = class_exists(LdapRecord\Models\ActiveDirectory\User::class) ? LdapRecord\Models\ActiveDirectory\User::class : '';
|
||||
break;
|
||||
case 'FreeIPA':
|
||||
$ldapModel = class_exists(LdapRecord\Models\FreeIPA\User::class) ? LdapRecord\Models\FreeIPA\User::class : '';
|
||||
break;
|
||||
default:
|
||||
# default to openLDAP
|
||||
$ldapModel = class_exists(LdapRecord\Models\OpenLDAP\User::class) ? LdapRecord\Models\OpenLDAP\User::class : '';
|
||||
}
|
||||
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user