mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-25 15:22:24 +01:00
Fix creazione config
This commit is contained in:
parent
e13ad96b65
commit
6722e59de4
@ -21,14 +21,17 @@ $skip_permissions = true;
|
||||
include_once __DIR__.'/core.php';
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\QueryException;
|
||||
|
||||
$op = filter('op');
|
||||
|
||||
$microsoft = null;
|
||||
|
||||
try {
|
||||
$microsoft = $dbo->selectOne('zz_oauth2', '*', ['nome' => 'Microsoft', 'enabled' => 1, 'is_login' => 1]);
|
||||
} catch (Exception $e) {
|
||||
if ($dbo->isConnected()) {
|
||||
try {
|
||||
$microsoft = $dbo->selectOne('zz_oauth2', '*', ['nome' => 'Microsoft', 'enabled' => 1, 'is_login' => 1]);
|
||||
} catch ( QueryException $e) {
|
||||
}
|
||||
}
|
||||
|
||||
// LOGIN
|
||||
|
Loading…
Reference in New Issue
Block a user