mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
fixed incorrect spelling
This commit is contained in:
parent
e023c65c69
commit
8404948a67
15
ajax.php
15
ajax.php
@ -3,7 +3,7 @@
|
|||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-01-16 23:01:33
|
* @Date: 2016-01-16 23:01:33
|
||||||
* @Last Modified by: prpr
|
* @Last Modified by: prpr
|
||||||
* @Last Modified time: 2016-02-03 20:11:39
|
* @Last Modified time: 2016-02-03 20:26:26
|
||||||
*
|
*
|
||||||
* - login, register, logout
|
* - login, register, logout
|
||||||
* - upload, change, delete
|
* - upload, change, delete
|
||||||
@ -208,10 +208,15 @@ if ($action == "change") {
|
|||||||
} else if ($action == "delete") {
|
} else if ($action == "delete") {
|
||||||
if (isset($_SESSION['token']) && $_SESSION['token'] == $user->getToken()) {
|
if (isset($_SESSION['token']) && $_SESSION['token'] == $user->getToken()) {
|
||||||
if (checkPost()) {
|
if (checkPost()) {
|
||||||
session_destroy();
|
if ($user->checkPasswd($_POST['passwd'])) {
|
||||||
$user->unRegister();
|
session_destroy();
|
||||||
$json['errno'] = 0;
|
$user->unRegister();
|
||||||
$json['msg'] = "Account successfully deleted.";
|
$json['errno'] = 0;
|
||||||
|
$json['msg'] = "Account successfully deleted.";
|
||||||
|
} else {
|
||||||
|
$json['errno'] = 1;
|
||||||
|
$json['msg'] = "Incorrect password.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$json['errno'] = 1;
|
$json['errno'] = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user