• Resolved jorgeandresca

    (@jorgeandresca)


    Hi team,

    Firstly, congratulations for the great product you’ve built. It works just perfect, and I’ve tried many during the past weeks, but this one is the most accurate.

    Thank you in advance:

    I am using the “Username” configuration. It works good. However, I have a specific question: Can I setup the username of each individual, instead of them?

    My users are already logged in the website, and I want them to use their current username automatically. Is there any configuration that I can use to accomplish that?

    I tried this simple code, but I get “Enter your username” every time. If I enter username manually, it works good, but not with Javascript.

    document.getElementById('wcAuthFieldUserName').value = 'John';
    setTimeout(function() { document.querySelector('button.wcButton').click(); }, 2000);

    Thank you again guys, keep it up!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    Hello @jorgeandresca

    Thank you!

    For the 1st question, would you please clarify this? I do not think I fully understand the question.

    For the 2nd question, “Username” authentication works for anonymous users only. WordPress authenticated users do not see “Enter your username” screen. Their WordPress username is used in the chat.

    What is the purpose of this JS code?

    Best regards
    Marcin

    Thread Starter jorgeandresca

    (@jorgeandresca)

    Hi Marcin! I already solved my problem.

    My question was, if I can set the username of each of my users., instead of “anonymus”. I already solved it ?? Whenever users try to login, I use javascript to autofill the username

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.