* change login method to bind.
This commit is contained in:
@@ -78,16 +78,16 @@ class admin extends control
|
||||
}
|
||||
|
||||
/**
|
||||
* Login zentao.
|
||||
* Bind zentao.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function login()
|
||||
public function bind()
|
||||
{
|
||||
if($_POST)
|
||||
{
|
||||
$response = $this->admin->loginByAPI();
|
||||
$response = $this->admin->bindByAPI();
|
||||
if($response == 'success')
|
||||
{
|
||||
$this->loadModel('setting')->setItem('system', 'global', 'community', $this->post->account);
|
||||
|
||||
@@ -119,7 +119,7 @@ class adminModel extends model
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function loginByAPI()
|
||||
public function bindByAPI()
|
||||
{
|
||||
$apiURL = 'http://www.zentao.net/user-login.json';
|
||||
return $this->postAPI($apiURL, $_POST);
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<td colspan="2" class="a-center">
|
||||
<?php
|
||||
echo html::submitButton($lang->admin->register->submit) . html::hidden('sn', $sn);
|
||||
echo sprintf($lang->admin->register->login, html::a(inlink('login'), $lang->admin->register->join));
|
||||
echo sprintf($lang->admin->register->login, html::a(inlink('bind'), $lang->admin->register->join));
|
||||
?>
|
||||
</td>
|
||||
</th>
|
||||
|
||||
@@ -189,16 +189,16 @@ class install extends control
|
||||
}
|
||||
|
||||
/**
|
||||
* Login zentao.
|
||||
* Bind zentao.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function login()
|
||||
public function bind()
|
||||
{
|
||||
if($_POST)
|
||||
{
|
||||
$response = $this->load('admin')->loginByAPI();
|
||||
$response = $this->load('admin')->bindByAPI();
|
||||
if($response == 'success')
|
||||
{
|
||||
$this->loadModel('setting')->setItem('system', 'global', 'community', $this->post->account);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<caption><?php echo $lang->install->success;?></caption>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo nl2br(sprintf($lang->install->joinZentao, $config->version, inlink('register'), inlink('login'), inlink('step6')));?>
|
||||
<?php echo nl2br(sprintf($lang->install->joinZentao, $config->version, inlink('register'), inlink('bind'), inlink('step6')));?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user