Skip to content

Commit

Permalink
Item15210: user registraton sometimes fails
Browse files Browse the repository at this point in the history
only create a new user profile page if it doesn't exist already
  • Loading branch information
MichaelDaum committed Sep 4, 2023
1 parent d893f83 commit ebecf24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/lib/Foswiki/UI/Register.pm
Expand Up @@ -1181,7 +1181,12 @@ sub _complete {
$data->{LoginName}, $data->{WikiName},
$data->{Password}, $data->{Email}
);
my $log = _createUserTopic( $session, $data );

# only create a new user topic if the user mapper hasn't done so on its own
_createUserTopic( $session, $data )
unless $session->topicExists( $Foswiki::cfg{UsersWebName},
$data->{WikiName} );

$users->setEmails( $cUID, $data->{Email} );

# convert to rego agent user copied from
Expand Down

0 comments on commit ebecf24

Please sign in to comment.