add test_client_hash
This commit is contained in:
@@ -92,8 +92,16 @@ function redirect_login(){
|
||||
}
|
||||
|
||||
|
||||
//имитируем заход под юзером
|
||||
function test_client_hash_kuri($hash){
|
||||
|
||||
$client = client_find_hash($hash);
|
||||
|
||||
if (isset($client['error'])) {
|
||||
add_user_cookie($client['client_id'], $result['clientpassword']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// if(password_verify($_POST["password"],$hashed_password))
|
||||
@@ -113,6 +121,8 @@ function resetpwd_kuri($hash){
|
||||
}
|
||||
else if ($client['clientpassword'] !== ''){
|
||||
$error = 'Пароль уже был изменен';
|
||||
|
||||
|
||||
$viewform = False;
|
||||
}
|
||||
|
||||
|
||||
@@ -136,6 +136,24 @@ function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
|
||||
|
||||
|
||||
|
||||
function books_client_kuri($id){
|
||||
|
||||
$login = check_login_kuri();
|
||||
|
||||
|
||||
if (!isset($login['client_id'])){
|
||||
header('Location: '.SITE.'login');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//все покупки
|
||||
function payments_kuri($filter = 1 ){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user