Commit 9f731e3f authored by Yadd's avatar Yadd
Browse files

Little things (closes: #1174)

parent d7025a22
......@@ -42,7 +42,7 @@ sub authenticate {
"Bad credentials for " . $req->user . ' (' . $req->address . ')' );
return PE_BADCREDENTIALS;
}
$req->datas->{restAuthInfo} = $res->{info};
$req->datas->{restAuthInfo} = $res->{info} || {};
return PE_OK;
}
......
......@@ -40,7 +40,7 @@ sub getUser {
$self->userLogger->warn( 'User ' . $req->user . ' not found' );
return PE_USERNOTFOUND;
}
$req->datas->{restUserDBInfo} = $res->{info};
$req->datas->{restUserDBInfo} = $res->{info} || {};
return PE_OK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment