summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-09 23:19:54 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 23:19:54 -0400
commitce1e026c42dbe142202d17675791579dfc30d6b5 (patch)
tree3ae4d5944f2ccf71510dadb229f4910b7a6468cf /app
parent3172d80347156b4d64061ad3eb1214e95fd0f7c4 (diff)
downloadscrott-ce1e026c42dbe142202d17675791579dfc30d6b5.tar.gz
scrott-ce1e026c42dbe142202d17675791579dfc30d6b5.zip
Fix bugs in user class
Added calls to function saveObj() where $this is mutated.
Diffstat (limited to 'app')
-rw-r--r--app/class/user.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php
index 97309f8..a6addf6 100644
--- a/app/class/user.class.php
+++ b/app/class/user.class.php
@@ -194,6 +194,7 @@ class user extends agent
$user->setPasswd($passwd);
$user->setEmail("");
$user->reg = 1;
+ $user->saveObj();
return $user;
}
@@ -224,6 +225,7 @@ class user extends agent
{
$this->salt = self::getBlob();
$this->auth = self::getAuth($passwd, $this->salt);
+ $this->saveObj();
}
/*
@@ -237,6 +239,7 @@ class user extends agent
return false;
$this->emailConf = 1;
+ $this->saveObj();
return true;
}
@@ -249,6 +252,7 @@ class user extends agent
$this->email = $email;
$this->emailVer = substr(self::getBlob(), 0, 8);
$this->emailConf = 0;
+ $this->saveObj();
}
/*