-Address errors on bad input from WebUI
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1062,6 +1062,9 @@ sub becomeuser { | ||||
|     my $passtab = xCAT::Table->new('passwd'); | ||||
|     my $id=shift; | ||||
|     my $pass=shift; | ||||
|     unless (defined $id and defined $pass) { | ||||
|         return undef; | ||||
|     } | ||||
|     my $passent=$passtab->getAttribs({key=>'xcat',username=>$id},['password']); | ||||
|     unless ($passent) { | ||||
|         return undef; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user