-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:
parent
3f056f173c
commit
4af8710b51
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user