$user=~s/\/$//;
my %userbase;
dbmopen %userbase,datafile($forum,"passwd"),0664;
- if (!$userbase{$user}) {
- $userbase{$user} = $forum->{authenticated}={"openiduser"=>1};
+ my $username = $user;
+ $username =~ s/^http:\/\///;
+ if (!$userbase{$username}) {
+ $userbase{$username} = $forum->{authenticated}={"openiduser"=>1};
} else {
- $forum->{authenticated} = thaw ($userbase{$user});
+ $forum->{authenticated} = thaw ($userbase{$username});
}
dbmclose %userbase;
- $forum->{"authenticated"}{"user"} = $user;
+ $forum->{"authenticated"}{"user"} = $username;
newsession(undef,$forum,$user);
# Если указан параметр reply, вызываем обработку реплики
if ($cgi->param("reply")) {