Skip to content

Commit

Permalink
[TASK] Improve devlog in case of first login; show green symbol final…
Browse files Browse the repository at this point in the history
…ly. Resolves tschikarski#24.
  • Loading branch information
tschikarski committed Oct 15, 2018
1 parent 0cecdfc commit 50699d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/ShibbolethAuthentificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ function authUser(&$user) {
// We now can auto-import; we won't be in authUser, if getUser didn't detect auto-import configuration.
$user['uid'] = $userhandler->synchronizeUserData($user);
if($this->writeDevLog) GeneralUtility::devlog('authUser: after insert/update DB $uid=' . $user['uid'] . '; ($user attached).','\TrustCnct\Shibboleth\ShibbolethAuthentificationService',0,$user);
if ((! $user['disable']) AND ($user['uid']>0)) return 200;
if ((! $user['disable']) AND ($user['uid']>0)) {
if ($this->writeDevLog) GeneralUtility::devLog('authUser: user authenticated','\TrustCnct\Shibboleth\ShibbolethAuthentificationService',-1,$user);
return 200;
}
if (defined('TYPO3_MODE') AND (TYPO3_MODE == 'BE') AND ($user['disable'])) {
if ($this->writeDevLog) GeneralUtility::devLog('authUser: user created/exists, but is in state "disable"','\TrustCnct\Shibboleth\ShibbolethAuthentificationService',2,$user);
if ($this->shibboleth_extConf['BE_disabledUserRedirectUrl']) {
Expand Down

0 comments on commit 50699d3

Please sign in to comment.