Commit 6790d7d8 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- password_rehash resulted in a bad hash. Fixed this.

parent 297a7cce
<?php if (!defined('skynet')) exit();
/* Skynet - Automated "Cloud" Security Scanner *#
#* Copyright (C) 2014-present Jason Frisvold <friz@godshell.com> *#
#* *#
#* This program is free software; you can redistribute it and/or modify *#
#* it under the terms of the GNU General Public License as published by *#
#* the Free Software Foundation; either version 2 of the License, or *#
#* (at your option) any later version. *#
#* *#
#* This program is distributed in the hope that it will be useful, *#
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *#
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *#
#* GNU General Public License for more details. *#
#* *#
#* You should have received a copy of the GNU General Public License *#
#* along with this program; if not, write to the Free Software *#
#* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
// List Schedule
$app->get('/keymgmt', $isauthenticated(), function () use ($app) {
global $smarty_data;
prep_smarty($app);
$app->render('keymgmt.tpl', $smarty_data);
});
?>
\ No newline at end of file
......@@ -105,7 +105,8 @@ class skynetUser {
if (password_needs_rehash($this->passwordHash,
PASSWORD_BCRYPT,
['cost' => 10])) {
$this->passwordHash = password_hash($password);
$this->passwordHash = password_hash($this->passwordHash,
PASSWORD_BCRYPT);
$this->_update_password();
}
$this->logged_in = true;
......
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