Website Summary Files Commits Branches @commit @diff @stats
path: root / models / user.php
diff options
context:
space:
mode:
1 files changed, 1 insertions, 0 deletions
-rw-r--r--models/user.php1
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)",