add user register info(addr,unit,phone)
This commit is contained in:
parent
3cead0e3e7
commit
965c97eda4
|
@ -89,6 +89,10 @@ class Account extends AbstractEventManager implements ServiceManagerAwareInterfa
|
||||||
'password' => md5($data['password']),
|
'password' => md5($data['password']),
|
||||||
'usertype' => $this->RoleMember,
|
'usertype' => $this->RoleMember,
|
||||||
'email' => $data['email'],
|
'email' => $data['email'],
|
||||||
|
'realname' => $data['realname'],
|
||||||
|
'phone' => $data['phone'],
|
||||||
|
'unit' => $data['unit'],
|
||||||
|
'address' => $data['address']
|
||||||
];
|
];
|
||||||
|
|
||||||
// $dbh = new TableGateway($this->memberTable, Zend_Db::getInstance());
|
// $dbh = new TableGateway($this->memberTable, Zend_Db::getInstance());
|
||||||
|
@ -205,7 +209,10 @@ class Account extends AbstractEventManager implements ServiceManagerAwareInterfa
|
||||||
'password' => $request->getParam('password'),
|
'password' => $request->getParam('password'),
|
||||||
'confirm_password' => $request->getParam('confirm_password'),
|
'confirm_password' => $request->getParam('confirm_password'),
|
||||||
'email' => $request->getParam('email'),
|
'email' => $request->getParam('email'),
|
||||||
'realname' => $request->getParam('realname')
|
'realname' => $request->getParam('realname'),
|
||||||
|
'phone' => $request->getParam('phone'),
|
||||||
|
'unit' => $request->getParam('unit'),
|
||||||
|
'address' => $request->getParam('address')
|
||||||
);
|
);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Account implements EventManagerAwareInterface
|
||||||
|
|
||||||
//注册
|
//注册
|
||||||
public function register($data)
|
public function register($data)
|
||||||
{var_dump($data);
|
{var_dump($data);exit;
|
||||||
$params = compact('data');
|
$params = compact('data');
|
||||||
$results = $this->getEventManager()->trigger('register.pre', $this, $params);
|
$results = $this->getEventManager()->trigger('register.pre', $this, $params);
|
||||||
$cache_data = $results->last();
|
$cache_data = $results->last();
|
||||||
|
@ -118,7 +118,7 @@ class Account implements EventManagerAwareInterface
|
||||||
$dbh = new dbh();
|
$dbh = new dbh();
|
||||||
|
|
||||||
$id = $dbh->insert($this->memberTable,$data,true);
|
$id = $dbh->insert($this->memberTable,$data,true);
|
||||||
|
|
||||||
if(!empty($id) && is_numeric($id))
|
if(!empty($id) && is_numeric($id))
|
||||||
{
|
{
|
||||||
$this->storeLogin($loginData);
|
$this->storeLogin($loginData);
|
||||||
|
|
Loading…
Reference in New Issue