* finish task #2363,2364.
This commit is contained in:
@@ -589,6 +589,27 @@ class user extends control
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unbind Ranzhi
|
||||
*
|
||||
* @param string $account
|
||||
* @param string $confirm
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function unbind($account, $confirm = 'no')
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->user->confirmUnbind, $this->createLink('user', 'unbind', "account=$account&confirm=yes")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->user->unbind($account);
|
||||
die(js::locate($this->createLink('company', 'browse'), 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* User login, identify him and authorize him.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user