Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3f03f05892
|
@ -2,10 +2,10 @@
|
|||
//require our bootstrap file for database connection
|
||||
require "../../bootstrap.php";
|
||||
|
||||
use Backend\Model\Post;
|
||||
use Backend\Model\User;
|
||||
|
||||
if(isset($_SESSION['permission'])){
|
||||
$user = new Post();
|
||||
//if(isset($_SESSION['permission'])){
|
||||
$user = new User();
|
||||
$user->name = $_POST['name'];
|
||||
$hashPass = password_hash($_POST['password'], PASSWORD_DEFAULT);
|
||||
$user->password = $hashPass;
|
||||
|
@ -15,4 +15,4 @@ if(isset($_SESSION['permission'])){
|
|||
}else{
|
||||
echo "saved";
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
|
Loading…
Reference in New Issue