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
|
||||
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)]);
|
||||
|
||||
@ -1966,11 +1966,8 @@ class ApiLogin
|
||||
}
|
||||
}
|
||||
|
||||
if($ajaxKlic){
|
||||
echo json_encode([
|
||||
'type' => 'success',
|
||||
'text' => $lang['lp_sent'].'.'
|
||||
]);
|
||||
if($ajaxKlic || $this->method == 'AJAX'){
|
||||
return $this->ajaxResponse('success', ['text' => $lang['lp_sent']);
|
||||
}else {
|
||||
// Preusmerimo na stran potrditve
|
||||
header('location: '.$this->page_urls['page_reset_password'].'&email='.$email);
|
||||
|
Loading…
x
Reference in New Issue
Block a user