summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-03 11:22:40 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-03 11:22:40 -0700
commit3d208242107b45c69fda6e0aca0286afa2203a46 (patch)
tree0640b37c0edd28fb23dfeaaf38a1df2aba4f2736
parent3ee5add5b0ba1550f4a153ff44775e8dd33d99ea (diff)
Fixed bug in generatePassword()
-rw-r--r--htdocs/src/User.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/src/User.inc.php b/htdocs/src/User.inc.php
index 6ff367e..440a0f0 100644
--- a/htdocs/src/User.inc.php
+++ b/htdocs/src/User.inc.php
@@ -85,6 +85,7 @@ class User {
$this->info['id'] = $ret;
$this->indatabase = true;
$this->sendNewPassword();
+ $this->save(); // Could do this better...
}
return true;
@@ -177,7 +178,7 @@ class User {
$i++;
}
- $this->userinfo['password'] = sha1($password);
+ $this->info['password'] = sha1($password);
return $password;
}