many small fixes to packaging and daemons after testing

This commit is contained in:
Oliver Gorwits
2013-03-05 21:38:18 +00:00
parent 639366c324
commit 5390b99a12
9 changed files with 33 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ post '/login' => sub {
my $user = schema('netdisco')->resultset('User')->find(param('username'));
if ($user) {
my $sum = Digest::MD5::md5_hex(param('password'));
if ($sum and $sum eq $user->password) {
if (($sum and $user->password) and ($sum eq $user->password)) {
session(user => $user->username);
header(Location => uri_for('/inventory')->path_query());
return;