projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pman.js
[Pman.Core]
/
SendIntro.php
diff --git
a/SendIntro.php
b/SendIntro.php
index
be055fb
..
c3187f1
100644
(file)
--- a/
SendIntro.php
+++ b/
SendIntro.php
@@
-36,7
+36,7
@@
class Pman_Core_SendIntro extends Pman
return true;
}
return true;
}
- function post()
+ function post(
$v
)
{
//DB_DataObject::debuglevel(1);
// gets id : c.id, rawPasswd: c.rawPasswd
{
//DB_DataObject::debuglevel(1);
// gets id : c.id, rawPasswd: c.rawPasswd
@@
-44,7
+44,7
@@
class Pman_Core_SendIntro extends Pman
if (!$this->hasPerm("Core.Person", "A")) {
$this->jerr("Not Permitted - no permission to add users.");
}
if (!$this->hasPerm("Core.Person", "A")) {
$this->jerr("Not Permitted - no permission to add users.");
}
- $p = DB_DataObject::factory('
P
erson');
+ $p = DB_DataObject::factory('
core_p
erson');
// let's make a password anyway..
$rawPasswd = false;
// let's make a password anyway..
$rawPasswd = false;
@@
-63,7
+63,7
@@
class Pman_Core_SendIntro extends Pman
if ($p->get('email', $_REQUEST['email'])) {
$this->jerr("duplicate email address:" .$_REQUEST['email']);
}
if ($p->get('email', $_REQUEST['email'])) {
$this->jerr("duplicate email address:" .$_REQUEST['email']);
}
- $p = DB_DataObject::factory('
P
erson');
+ $p = DB_DataObject::factory('
core_p
erson');
$p->setFrom($_REQUEST);
if ($rawPasswd == false) {
$p->setFrom($_REQUEST);
if ($rawPasswd == false) {
@@
-81,7
+81,7
@@
class Pman_Core_SendIntro extends Pman
}
}
- $p = DB_DataObject::factory('
P
erson');
+ $p = DB_DataObject::factory('
core_p
erson');
if (!$id || !$p->get($_REQUEST['id'])) {
$this->jerr("Invalid user id");
if (!$id || !$p->get($_REQUEST['id'])) {
$this->jerr("Invalid user id");
@@
-95,12
+95,15
@@
class Pman_Core_SendIntro extends Pman
// next..
// next..
- $p->sendTemplate('password_welcome', array(
+ $
ret = $
p->sendTemplate('password_welcome', array(
'sender' => $this->authUser,
'rawPasswd' => $rawPasswd,
'baseURL' => $this->baseURL,
));
'sender' => $this->authUser,
'rawPasswd' => $rawPasswd,
'baseURL' => $this->baseURL,
));
-
+ if (is_object($ret)) {
+ $this->jerr($ret->toString());
+
+ }
$this->jok("SENT");
$this->jok("SENT");