This commit is contained in:
tejagerjovic 2022-09-09 09:21:09 +02:00
commit 904e4e10de
7 changed files with 23 additions and 15 deletions

View File

@ -256,8 +256,7 @@ class ApiLogin
if ($cookie_pass != $r[0]) { if ($cookie_pass != $r[0]) {
// najprej poradiraij cookije! // najprej poradiraij cookije!
setcookie('uid', "", time() - 3600, $cookie_domain); setcookie('uid', "", time() - 3600, $cookie_domain);
setcookie('secret', "", time() - 3600, setcookie('secret', "", time() - 3600, $cookie_domain);
$cookie_domain);
if (substr_count($cookie_domain, ".") > 1) { if (substr_count($cookie_domain, ".") > 1) {
$nd = substr($cookie_domain, $nd = substr($cookie_domain,
@ -1257,8 +1256,7 @@ class ApiLogin
if (!empty($error)) { if (!empty($error)) {
if($ajaxKlic){ if($ajaxKlic){
echo json_encode($this->preveriNapake($error)); return $this->ajaxResponse('error', $this->preveriNapake($error));
die();
} }
// Ime in email posljemo nazaj v urlju // Ime in email posljemo nazaj v urlju

View File

@ -119,6 +119,7 @@ function prijava_1ka_theme()
function prijava_1ka_preprocess(&$variables) function prijava_1ka_preprocess(&$variables)
{ {
if(!empty($variables['plugin_id']) && in_array($variables['plugin_id'], [ if(!empty($variables['plugin_id']) && in_array($variables['plugin_id'], [
'prijava_intro_block',
'prijava_block', 'prijava_block',
'prijava_obnovitev_gesla_block', 'prijava_obnovitev_gesla_block',
'prijava_obnovitev_gesla_aktivacija_blok', 'prijava_obnovitev_gesla_aktivacija_blok',
@ -127,4 +128,6 @@ function prijava_1ka_preprocess(&$variables)
){ ){
$variables['#cache']['max-age'] = 0; $variables['#cache']['max-age'] = 0;
} }
return $variables;
} }

View File

@ -68,7 +68,7 @@
jQuery('#modal-lost-password .w-form-fail').hide(); jQuery('#modal-lost-password .w-form-fail').hide();
if (val.type == 'success') { if (val.type == 'success') {
jQuery('#modal-lost-password .w-form-done').html('<div>' + val.text + '</div>').show(); jQuery('#modal-lost-password .w-form-done').html('<div>' + val.data.text + '</div>').show();
// Če je bil email uspešno poslal potem okno zapremo po 5 sekundah // Če je bil email uspešno poslal potem okno zapremo po 5 sekundah
setTimeout(function () { setTimeout(function () {
@ -488,7 +488,7 @@ function odpriAaiLoginObvestilo(){
jQuery('.nakup-prijava').css('display', 'flex'); jQuery('.nakup-prijava').css('display', 'flex');
} }
} else { } else {
jQuery('#modal-open-login-obrazec').css('display', 'flex'); jQuery('#modal-login').css('display', 'flex');
} }
} }

View File

@ -71,9 +71,9 @@
var jezikText = jQuery('.language-link:not(.is-active)').text().substring(0, 3); var jezikText = jQuery('.language-link:not(.is-active)').text().substring(0, 3);
jQuery('.language-link').text(jezikText); jQuery('.language-link').text(jezikText);
function pridobiJezik() {
return jQuery('html')[0].lang;
}
/** /**
* Napredno iskanje * Napredno iskanje
@ -211,8 +211,14 @@
jQuery('.modal-intro-title').hide(); jQuery('.modal-intro-title').hide();
jQuery('.modal-intro-registration-text').css('display', 'flex'); jQuery('.modal-intro-registration-text').css('display', 'flex');
if(pridobiJezik() == 'sl') {
jQuery('#modal-open-1ka').removeClass('modal-open-login-obrazec').addClass('modal-goto-registration'); jQuery('#modal-open-1ka').removeClass('modal-open-login-obrazec').addClass('modal-goto-registration');
jQuery('#modal-info-login').css('display', 'flex'); jQuery('#modal-info-login').css('display', 'flex');
}
else{
jQuery('.rexister-modal').hide();
jQuery('#modal-registration').css('display', 'flex');
}
}); });
jQuery('.modal-open-intro-obrazec').on('click', function () { jQuery('.modal-open-intro-obrazec').on('click', function () {

View File

@ -353,6 +353,7 @@
&:hover { &:hover {
background: #f8f8f8; background: #f8f8f8;
//background: rgba(30, 136, 229, 0.05);
} }
img { img {

View File

@ -87,9 +87,9 @@ END HEADER #}
</li> </li>
</ul> </ul>
{% if email_uporabnika %} {% if email_uporabnika %}
<a href="/admin/survey" class="button-pricechart pcb1 w-button">Preizkusi brezplačno</a> <a href="/admin/survey" class="button-pricechart pcb1 w-button brezplacni-nakup-samo-registracija">Preizkusi brezplačno</a>
{% else %} {% else %}
<a href="#" class="button-pricechart pcb1 w-button">Preizkusi brezplačno</a> <a href="#" class="button-pricechart pcb1 w-button brezplacni-nakup-samo-registracija">Preizkusi brezplačno</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -55,7 +55,7 @@ services:
- PMA_HOST=mysql - PMA_HOST=mysql
- PMA_PORT=3306 - PMA_PORT=3306
- UPLOAD_LIMIT=300M - UPLOAD_LIMIT=300M
- MAX_EXECUTION_TIME=300 - MAX_EXECUTION_TIME=1200
- MEMORY_LIMIT=1024M - MEMORY_LIMIT=1024M
- REALPATH_CACHE_SIZE=32M - REALPATH_CACHE_SIZE=32M
networks: networks: