From 9f2b625c887af31f93185ded5a7701f211c25c92 Mon Sep 17 00:00:00 2001 From: "ian%hixie.ch" Date: Sat, 6 Jul 2002 16:12:42 +0000 Subject: [PATCH] Remove XXX comment about needing an API to enable or disable UI elements, since that need has disappeared now that we use provide that information reliably in the user object. Also split a long line into two for no particular reason. --- webtools/PLIF/PLIF/Service/Components/Login.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtools/PLIF/PLIF/Service/Components/Login.pm b/webtools/PLIF/PLIF/Service/Components/Login.pm index 4153769c79f..a8b90f233a8 100644 --- a/webtools/PLIF/PLIF/Service/Components/Login.pm +++ b/webtools/PLIF/PLIF/Service/Components/Login.pm @@ -172,7 +172,6 @@ sub cmdLoginSendPassword { # user.login # if this returns undef, don't do anything! -# XXX need a quieter version of this to enable/disable UI elements sub hasRight { my $self = shift; my($app, $right) = @_; @@ -199,7 +198,8 @@ sub requireLogin { $app->getSelectingServiceList('user.login.required.generic')->loginRequired($app); } my $address = $app->input->address; - if (defined($address) and not defined($app->getService('user.factory')->getUserByContactDetails($app, $app->input->protocol, $address))) { + if (defined($address) and + not defined($app->getService('user.factory')->getUserByContactDetails($app, $app->input->protocol, $address))) { my($user, $password) = $self->createUser($app, $app->input->protocol, $address); $self->sendPassword($app, $user, $app->input->protocol, $password); return;