aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/user.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.php b/models/user.php
index 0871d79..eff2c3e 100644
--- a/models/user.php
+++ b/models/user.php
@@ -9,6 +9,7 @@ class User extends Table {
public $Role;
static function create(string $Username, string $Password, string $Role) : int {
+ $Password = password_hash($Password, PASSWORD_BCRYPT);
return Table::_create(
"Users",
"(Username, Password, Role)",