Skip to content

Commit

Permalink
While importing during 1st stage we match by username
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 7, 2016
1 parent 89c713f commit 7abf5d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/Users.pm
Expand Up @@ -5885,8 +5885,9 @@ sub ImportUser {
}
}

if ($uid == -1) {
# check for existence of this user (and change it with given values)
if ($uid == -1 || Stage->initial()) {
# Check for existence of this user (and change it with given values).
# During 1st stage we simply match by username (bnc#965852).
my %existing = %{$self->GetUserByName ($username, "")};
if (%existing) {

Expand Down

0 comments on commit 7abf5d8

Please sign in to comment.