mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-01 08:00:47 +08:00
Add two factor security config to ldap
This commit is contained in:
parent
841c48503e
commit
05f5a40bc3
2 changed files with 23 additions and 0 deletions
|
@ -319,6 +319,18 @@ class SecurityController extends AbstractController
|
|||
$lastName = $user->getLastName();
|
||||
$userName = $user->getUsername();
|
||||
|
||||
if ($user->isTotpAuthenticationEnabled()) {
|
||||
return [
|
||||
'appStatus' => $appStatus,
|
||||
'active' => true,
|
||||
'id' => $id,
|
||||
'firstName' => $firstName,
|
||||
'lastName' => $lastName,
|
||||
'userName' => $userName,
|
||||
'two_factor_complete' => 'false'
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'appStatus' => $appStatus,
|
||||
'active' => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue