customer.login problem

Sorin0280
Visitor
1 0 1

Hello. I have a problem, after the customer is logging in it shows me continiously the logging form, so I can log in many times and that is not ok. How can I solve this? After the customer is logged in to not give him the possibility to log in again?

I attach to you the code from menu

 

<div class="menu_moblie d-flex d-xl-none jsmenumobile align-items-center {% unless settings.enable_sticky_mobile %}engoc-disable-sticky{% endunless %}">
  <a href="javascript&colon;void(0)" title="" class="menuleft">
    <span class="iconmenu">
      <span></span>
      <span></span>
      <span></span>
    </span>
  </a>
  <div class="logo_menumoblie">
 
    {% if settings.logo_svgmobile != blank %}
    <div class="logosvg" style="max-width:{{settings.mobile_logo_maxwidth}}px;">
      <a href="{{shop.url}}">{{settings.logo_svgmobile}}</a>
    </div>
    {% else %}         
    <a href="{{shop.url}}">
      {% if settings.logo_mobile != blank %}
      <img src="{{settings.logo_mobile|img_url:'master'}}" width="{{settings.mobile_logo_maxwidth}}" alt="logo">
      {% else %}
      <img src="//placehold.it/40x40" width="{{settings.mobile_logo_maxwidth}}" alt="logo">
      {% endif %}
    </a>
    {% endif %}
 
  </div>
  <div class="menuright">
    <span class="{% if settings.enable_rtl_mode %} pl-2 {% else %}pr-3{% endif %} js-search-destop">{% if settings.hd_icon_search_mb_svg != blank %}{{settings.hd_icon_search_mb_svg}}{% else %}<i class="{{settings.hd_icon_search_mb}}"></i>{% endif %}</span>
    <a href="javascript&colon;void(0)" title="" class="js-call-minicart">{% if settings.hd_icon_cart_mb_svg != blank %}{{settings.hd_icon_cart_mb_svg}} {% else %}<i class="{{settings.hd_icon_cart_mb}}"></i>{% endif %}
      <span class="count_pr_incart enj-cartcount">{{cart.item_count }}</span>
    </a>
  </div>
</div>
<div class="box_contentmenu_background">
</div>
<div class="box_contentmenu">
  <div class="tab_content_menu_mobile">
    <ul class="nav nav-tabs toptab_box_content list-unstyled mb-0" role="tablist">
      <li class="toptab_li">
        <a class="tab_navar active" href="#tab_menu_mobile" role="tab" data-toggle="tab">
          <span class="tab-menu-icon">
            <span></span>
            <span></span>
            <span></span>
          </span>
          <span class="{% if settings.enable_rtl_mode %} mr-3 {% else %}ml-3{% endif %}">{{ 'layout.navigation.menu' | t }}</span>
        </a>
      </li>
      <li class="toptab_li">
        <a class="tab_navar_right" href="#tab_account_mobile" role="tab" data-toggle="tab">
          <span class=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" height="400" width="400" id="svg2" version="1.1" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xml:space="preserve"><metadata id="metadata8"><rdf><work rdf:about=""><format>image/svg+xml</format><type rdf:resource="http://purl.org/dc/dcmitype/StillImage"></type></work></rdf></metadata><defs id="defs6"></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,400)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 1506.87,2587.11 c -225.04,0 -408.14,-183.08 -408.14,-408.11 0,-225.06 183.1,-408.13 408.14,-408.13 225.02,0 408.13,183.07 408.13,408.13 0,225.03 -183.11,408.11 -408.13,408.11 z m 0,-1038.56 c -347.64,0 -630.432,282.79 -630.432,630.45 0,347.63 282.792,630.43 630.432,630.43 347.63,0 630.42,-282.8 630.42,-630.43 0,-347.66 -282.79,-630.45 -630.42,-630.45 v 0"></path><path id="path16" style="fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 399.648,361.789 H 2614.07 c -25.06,261.531 -139.49,503.461 -327.47,689.831 -124.25,123.14 -300.78,193.96 -483.86,193.96 h -591.76 c -183.61,0 -359.601,-70.82 -483.863,-193.96 C 539.148,865.25 424.719,623.32 399.648,361.789 Z M 2730.69,139.461 H 283.035 c -61.558,0 -111.16,49.59 -111.16,111.16 0,363.438 141.68,704 398.32,959.019 165.657,164.55 399.414,258.82 640.785,258.82 h 591.76 c 241.94,0 475.14,-94.27 640.8,-258.82 256.63,-255.019 398.31,-595.581 398.31,-959.019 0,-61.57 -49.59,-111.16 -111.16,-111.16 v 0"></path></g></g></svg></span>
          <span class="{% if settings.enable_rtl_mode %} mr-2 {% else %}ml-2{% endif %}"> {{ 'customer.login.title' | t }}</span>
        </a>
      </li>
    </ul>
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane show in active tab_children_menu" id="tab_menu_mobile">        
 
        {% assign i = 1 %}
 
        {% assign main_menu = settings.main_menu_store %}
        {% for link in linklists[main_menu].links %}    
        {% assign item = link.title | downcase %}
        {% assign child_list_handle = link.title | handleize %}
 
        {% if linklists[child_list_handle].links != blank %}
 
        <div class="menu-horizon-list">
 
 
          {% if link.title contains '[' %}
          {%- assign label  = link.title | split: '[' | last  | split: ']' | first -%}  
          {%- assign bgc  = link.title | split: '(' | last  | split: ')' | first -%}
 
          <a href="{{ link.url }}" title="{{link.title | split: '[' | first }}" class="relative nammenu ">{{link.title | split: '[' | first }}
            <span class="absolute label_menu label_menu-{{link.title | handleize}}-{{forloop.index}}" {% if link.title contains '(' %}style="background-color: {{link.title | split: '(' | last  | split: ')' | first}};"{% endif %}><span>{{link.title | split: '[' | last  | split: ']' | first}}</span></span>
            <style>
              .label_menu-{{link.title | handleize}}-{{forloop.index}}:before {
                border-top: 4px solid {{link.title | split: '(' | last  | split: ')' | first}};
              }            
            </style>
          </a>
          {% else %}
          <a href="{{ link.url }}" title="{{link.title | split: '[' | first }}" class="relative nammenu ">{{link.title | split: '[' | first }}</a>
          {% endif %}
 
          <a data-check="c{{i}}" class="toggle-menumobile  js_icon_horizon-menu">
            <i class=" {% if settings.enable_rtl_mode %}fa fa-angle-left{%else%}fa fa-angle-right{% endif %}"></i>
          </a>
          <div class="c{{i}} menu_lv2" >
            {% if settings.enable_rtl_mode %}
            <a href="javascript&colon;void(0)" title="{{link.title | split: '[' | first }}" class="js-back back-to"> {{link.title | split: '[' | first }} <i class="fa fa-angle-left pr-2 "></i></a>
            {% else %}
            <a href="javascript&colon;void(0)" title="{{link.title | split: '[' | first }}" class="js-back back-to">  {{link.title | split: '[' | first }} <i class="fa fa-angle-right pl-2 "></i> </a>
            {% endif %}
            {% for childlink in linklists[child_list_handle].links %}
            {% assign grand_child_list_handle = childlink.title | handle %}
            {% if linklists[grand_child_list_handle].links != blank %}
            <h2 class="title_menu_mb relative">
              {% if childlink.title contains '[' %}
 
              <a href="{{ childlink.url }}" title="{{childlink.title | split: '[' | first }}" class="delay03 uppercase menu_lv1 "><span>{{childlink.title | split: '[' | first }}</span>
                <div class="absolute label_menu label_menu-{{childlink.title | handleize}}-{{forloop.index}}" {% if childlink.title contains '(' %}style="background-color: {{childlink.title | split: '(' | last  | split: ')' | first}};"{% endif %}>{{childlink.title | split: '[' | last  | split: ']' | first}}</div>
                <style>
                  .label_menu-{{childlink.title | handleize}}-{{forloop.index}}:before {
                    border-top: 4px solid {{childlink.title | split: '(' | last  | split: ')' | first}};
                  }            
                </style>
              </a>
              {% else %}
              <a href="{{ childlink.url }}" title="{{childlink.title | split: '[' | first }}" class="delay03 uppercase menu_lv1 "><span>{{childlink.title | split: '[' | first }}</span></a>
              {% endif %}
 
            </h2>
            <ul class="list-unstyled mb-0 menu_lv3">
              {% for grandchildlink in linklists[grand_child_list_handle].links %}
              <li>
 
                {% if grandchildlink.title contains '[' %}
                {%- assign label  = grandchildlink.title | split: '[' | last  | split: ']' | first -%}  
                {%- assign bgc  = grandchildlink.title | split: '(' | last  | split: ')' | first -%}
                <a href="{{ grandchildlink.url }}" title="{{grandchildlink.title | split: '[' | first }}" class="relative delay03 uppercase menu_lv1 "><span>{{grandchildlink.title | split: '[' | first }}</span>
                  <div class="absolute label_menu label_menu-{{grandchildlink.title | handleize}}-{{forloop.index}}" {% if grandchildlink.title contains '(' %}style="background-color: {{grandchildlink.title | split: '(' | last  | split: ')' | first}};"{% endif %}>{{grandchildlink.title | split: '[' | last  | split: ']' | first}}</div>
                  <style>
                    .label_menu-{{grandchildlink.title | handleize}}-{{forloop.index}}:before {
                      border-top: 4px solid {{grandchildlink.title | split: '(' | last  | split: ')' | first}};
                    }            
                  </style>
                </a>
                {% else %}
                <a href="{{ grandchildlink.url }}" title="{{grandchildlink.title | split: '[' | first }}" class="delay03 uppercase menu_lv1 "><span>{{grandchildlink.title | split: '[' | first }}</span></a>
                {% endif %}
              </li>
              {% endfor %}
            </ul>
            {% else %}
            <h2 class="title_menu_mb title_only_one"><a href="{{childlink.url}}">{{childlink.title}}</a></h2>
            {% endif %}
            {% endfor %}
          </div>
          {% assign i= i| plus :1 %}
        </div>
        {% else %}
 
        <div class="menu-horizon-list ">
          {% if link.title contains '[' %}
          {%- assign label  = link.title | split: '[' | last  | split: ']' | first -%}  
          {%- assign bgc  = link.title | split: '(' | last  | split: ')' | first -%}
          <a href="{{ link.url }}" title="{{link.title | split: '[' | first }}" class="nammenu relative w-100 menu_lv1 "><span>{{link.title | split: '[' | first }}</span>
            <div class="absolute label_menu label_menu-{{link.title | handleize}}-{{forloop.index}}" {% if link.title contains '(' %}style="background-color: {{link.title | split: '(' | last  | split: ')' | first}};"{% endif %}>{{link.title | split: '[' | last  | split: ']' | first}}</div>
            <style>
              .label_menu-{{link.title | handleize}}-{{forloop.index}}:before {
                border-top: 4px solid {{link.title | split: '(' | last  | split: ')' | first}};
              }            
            </style>
          </a>
          {% else %}
          <a href="{{ link.url }}" title="{{link.title | split: '[' | first }}" class="nammenu w-100 menu_lv1 "><span>{{link.title | split: '[' | first }}</span></a>
          {% endif %}
        </div>
 
        {% endif %}
        {% endfor %}
 
      </div>
      <!-- tab account login-regester-->
      <div role="tabpanel" class="tab-pane fade" id="tab_account_mobile">
        <div class="overlay_login-content">
          <div class="row justify-content-center box_content_accountdestop text-center">
 
            <div class="formlogin">
              <div class="login_primary CustomerLoginForm">
                <div class="login-icon">
                  <span class="icon-icon-user"></span>
                </div>
                <div class="mailrrr mt-3">
                  {% form 'customer_login' %}
                  {{ form.errors | default_errors }}
                  <div class="form-group">
                    <input type="email"  class="form-control" name="customer[email]"  placeholder="{{ 'customer.login.email' | t }}" required>
                  </div>
                  {% if form.password_needed %}
                  <div class="form-group">
                    <input type="password" class="form-control"  placeholder="{{ 'customer.login.password' | t }}" name="customer[password]" required>
                  </div>
                  {% endif %}
                  <div class="form-check">
                    {% if form.password_needed %}
                    <a href="#recover" class="RecoverPassword">{{ 'customer.login.forgot_password' | t }}</a>
                    {% endif %}
                  </div>
                  <button type="submit" class="btn btn-dark w-100" value="{{ 'customer.login.log_in' | t }}">
                    {{ 'customer.login.log_in' | t }}
                  </button>
                  {% endform %}
                </div>
                <div class="or_creat my-3">
                  <span>{{ 'customer.login.or' | t }}</span>
                  {% if settings.enable_rtl_mode %}
                  <div><a href="javascript&colon;void(0)" class="jsCreate_account"><i class="mr-3 ti-arrow-left"></i> {{ 'customer.account.register_now' | t }} </a></div>
                  {% else %}
                  <div><a href="javascript&colon;void(0)" class="jsCreate_account">{{ 'customer.account.register_now' | t }} <i class="ml-3 ti-arrow-right"></i></a></div>
                  {% endif %}
                </div>
              </div>
              {% form 'recover_customer_password' %}
              {{ form.errors | default_errors }}
              {% comment %}
              Assign variable to be used after timber.init() is run in theme.liquid
              {% endcomment %}
              {% if form.posted_successfully? %}
              {% assign resetPassword = true %}
              {% endif %}
              <div class="RecoverPasswordForm" style="display: none;">
                <div class="block-login">
                  <span>
                    <i class="ti-reload"></i>
                  </span>
                  <h2 class="title24 text-center title-form-account">{{ 'customer.recover_password.title' | t }}</h2>
                  <div class="form-group row">
                    <div class="col-sm-12">
                      <input type="email" class="form-control" placeholder="{{ 'customer.login.email' | t }}" name="customer[email]" {% if form.email %} value="{{ form.email }}"{% endif %} required>
                    </div>
                  </div>
                  <div class="text-center mt-3">
                    <input type="submit" class="register-button" value="{{ 'customer.recover_password.submit' | t }}">
                  </div>
                  <div class="table-custom create-account">
                    <div class="text-center mt-4">
                      <a class="HideRecoverPasswordLink" style="cursor: pointer;" class="color">{{ 'customer.recover_password.cancel' | t }}</a>
                    </div>
                  </div>
                </div>
              </div>
              {% endform %}
            </div>
 
            <div class="form_register">
              <div class="login_primary">
                <div class="login-icon register-icon">
                  <span class="ti-pencil-alt">
                  </span>
                </div>
                <span class="title_resgister">{{ 'customer.register.title' | t }}</span>
                <div class="mailrrr mt-3">
                  {% form 'create_customer' %}
                  {{ form.errors | default_errors }}
                  <div class="form-group">
                    <input type="email" placeholder="{{ 'customer.register.email' | t }}" class="form-control" name="customer[email]" {% if form.email %} value="{{ form.email }}"{% endif %} required>
                  </div>
                  <div class="form-group">
                    <input type="password" class="form-control" name="customer[password]" placeholder="{{ 'customer.register.password' | t }}" required>
                  </div>
                  <button type="submit" class="btn btn-dark w-100" value="{{ 'customer.register.submit' | t }}">
                    {{ 'customer.register.submit' | t }}
                  </button>
                  {% endform %}
                </div>
                <div class="or_creat my-3">
                  <span>{{ 'customer.login.or' | t }}</span>
                  {% if settings.enable_rtl_mode %}
                  <div><a href="javascript&colon;void(0)" class="jsBack_login"><i class="mr-3 ti-arrow-left"></i> {{ 'customer.login.back_to_login' | t }} </a></div>
                  {% else %}
                  <div><a href="javascript&colon;void(0)" class="jsBack_login">{{ 'customer.login.back_to_login' | t }} <i class="ml-3 ti-arrow-right"></i></a></div>
                  {% endif %}
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="close-menu-mobile text-center js-eveland-close">
      <i class="ti-close mr-3"></i>Close    
    </div>
  </div>
</div>
Reply 1 (1)

vitbarreto
Tourist
7 0 0

I am facing the same issue! It started sometime between sunday and monday and my customers are stuck in a checkin loop after the first screen of checkout...