We’re currently experiencing a high volume of inquiries and our response time could be up to 2 days. We apologize for the delay, and thank you for your patience. Our available time: 2 AM - 1 PM (Monday - Friday) (UTC+0 Timezone).

Okay
  Public Ticket #2921114
Login system customization
Closed

Comments

  •  4
    Mohiuddin Muhin started the conversation

    My customer want to login with phone number or email address.

    How can I allow customer or vendor to login with phone number instead of email address?

    Please help.

  •  3,840
    Support replied

    Hi,

    Our script doesn't support login by phone number.

    You need to customize login form in 

    platform/themes/martfury/views/ecommerce/customers/login.blade.php

    and handle login process in 

    platform/plugins/ecommerce/src/Http/Controllers/Customers/LoginController.php

  •  4
    Mohiuddin Muhin replied

    I have added phone number while a customer registering.

    Now want to login with phone number or email address.

    Now could tyou please tell me where is the script where I can set the query like 'Where phone number orWhere email address checking for login. I could not found the exact query file yet.

  •  3,840
    Support replied

    Hi,

    You need to customize it in platform/plugins/ecommerce/src/Http/Controllers/Customers/LoginController.php. It's using Laravel authenticate trait AuthenticatesUsers.

    Check this: https://stackoverflow.com/questions/47537191/laravel-login-with-username-email-or-phone

  •  4
    Mohiuddin Muhin replied

    I have already found and known that you are using Laravel authenticate trait AuthenticatesUsers.
    and the path is  platform/plugins/ecommerce/src/Http/Controllers/Customers/LoginController.php

    Before sending you my previous query.

    But I found that your are using an and query with email and password.
    I did not find any scope to add add phone and set the query Where 'email' orWhere 'phone'.
    Can you help me here?

  •  3,840
    Support replied

    Hi,

    Sorry, I don't support on code customization.

    As support policy, we won't support customization, we just support our existing code https://codecanyon.net/page/item_support_policy

    If you need our customization service for this feature, please pay $30 via PayPal [email protected], our dev team will do it for you.