* adjus for bind zentao.
This commit is contained in:
@@ -89,7 +89,8 @@ class admin extends control
|
||||
if($_POST)
|
||||
{
|
||||
$response = $this->admin->bindByAPI();
|
||||
if($response == 'success')
|
||||
$response = json_decode($response);
|
||||
if($response->result == 'success')
|
||||
{
|
||||
$this->loadModel('setting')->setItem('system.common.global.community', $this->post->account);
|
||||
echo js::alert($this->lang->admin->bind->success);
|
||||
@@ -97,7 +98,6 @@ class admin extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$response = json_decode($response);
|
||||
if($response->result == 'fail') die(js::alert($response->message));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
<th class='w-100px'><?php echo $lang->user->account;?></th>
|
||||
<td>
|
||||
<div class="required required-wrapper"></div>
|
||||
<?php echo html::input('account', '', "class='form-control'");?>
|
||||
<div class='help-block'><?php echo $lang->admin->register->lblAccount;?></div>
|
||||
<?php echo html::input('account', '', "class='form-control' placeholder='{$lang->admin->register->lblAccount}'");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -55,8 +54,7 @@
|
||||
<th><?php echo $lang->user->password;?></th>
|
||||
<td>
|
||||
<div class="required required-wrapper"></div>
|
||||
<?php echo html::password('password1', '', "class='form-control'");?>
|
||||
<div class='help-block'><?php echo $lang->admin->register->lblPasswd;?></div>
|
||||
<?php echo html::password('password1', '', "class='form-control' placeholder='{$lang->admin->register->lblPasswd}'");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user