Skip to content

Commit

Permalink
Fix "legacy user" login
Browse files Browse the repository at this point in the history
See https://tuleap.net/plugins/tracker/?aid=35118

Change-Id: I3208936139309e65e5f6e3e68ce82040aae54abc
  • Loading branch information
rvogel authored and ItSpiderman committed Nov 23, 2023
1 parent 7b5630f commit a2e1df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Special/TuleapLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function callback() {
* @throws \MWException
*/
private function setUser( TuleapResourceOwner $owner ) {
$legacyUser = $this->userMappingProvider->provideUserForId( $owner->getId() );
if ( !( $legacyUser instanceof User ) ) {
$user = $this->userMappingProvider->provideUserForId( $owner->getId() );
if ( $user === null ) {
$user = $this->userFactory->newFromName( $owner->getId() );
}

Expand Down

0 comments on commit a2e1df6

Please sign in to comment.