Api popravek
This commit is contained in:
parent
0fbce95763
commit
57cef1af07
@ -1895,7 +1895,7 @@ class ApiLogin
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Novo geslo sestavis iz dveh nakljucnih besed + stevilke
|
// Novo geslo sestavis iz dveh nakljucnih besed + stevilke
|
||||||
include_once($site_path.'lang/words_'.$lang['language_short'].'.php');
|
include($site_path.'lang/words_'.$lang['language_short'].'.php');
|
||||||
|
|
||||||
$geslo = strtolower($words[rand(0, 999)].rand(0, 9).$words[rand(0, 999)]);
|
$geslo = strtolower($words[rand(0, 999)].rand(0, 9).$words[rand(0, 999)]);
|
||||||
|
|
||||||
@ -1966,11 +1966,8 @@ class ApiLogin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ajaxKlic){
|
if($ajaxKlic || $this->method == 'AJAX'){
|
||||||
echo json_encode([
|
return $this->ajaxResponse('success', ['text' => $lang['lp_sent']);
|
||||||
'type' => 'success',
|
|
||||||
'text' => $lang['lp_sent'].'.'
|
|
||||||
]);
|
|
||||||
}else {
|
}else {
|
||||||
// Preusmerimo na stran potrditve
|
// Preusmerimo na stran potrditve
|
||||||
header('location: '.$this->page_urls['page_reset_password'].'&email='.$email);
|
header('location: '.$this->page_urls['page_reset_password'].'&email='.$email);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user