Forum Discussion

shaihulud2k's avatar
3 years ago
Solved

Unable to log into Web Store

Product: Star Wars: Galaxy of Heroes
Platform:Android Tablet
What type of device are you experiencing the issue with? Windows Browser Chrome
OS Version Windows 10
Ally Code: (Find it here: http://bit.ly/AllyCode )
What type of issue do you have? Other
How often does the bug occur? Every time (100%)
Summarize your bug Can't log into SWGOH Web Store
Steps: How can we find the bug ourselves?
Connection Type
Please select your region Europe
Country

Hi,

I tried to log into the SWGOH store. When it was launched, it successfully linked SWGOH to my EA account. However, now, when I try to log in to the store and provide the email address I originally bound to my EA account, the "Continue" button remains disabled. If I enter my Google account email address, the "Continue" button will be enabled, but I never receive the code.

I tried several times also using Edge,  but to no avail

Please advise

Kai

  • Thank you for your report. The team is aware of this bug and investigating the issue further.

10 Replies

  • Ok, great. My EA Account (primary email) contains a hyphen (-). When I omit that, the JS code will enable the submit button. Not helpful if the Web Store will not consider a valid email address as being valid and keep the button disabled. Maybe a good time to reconsider the regex for checking the validity of the provided email address?!

  • shaihulud2k's avatar
    shaihulud2k
    3 years ago
    I am not the only one, but here is the solution, EA
     
     
    This is the offending function being called in EmailForm.js
     
     function validateEmailAddress(email) {
        let validationExp = /^[\S]+@[\w]+(\.[\w]+)*\.\w{2,}$/;
     
        if(!email.match(validationExp)){
          return false;
        }
        return true;
      }

    This is wrong, obsolete and should not be there. The code in EmailForm.js is using double email checking. The first check is right and points to index.js in the email-validator/index.js package, the second is the above, bad code

    React.useEffect(() => {
    const keyDownHandler = event => {
    if (emailValidator.validate(emailAddress) && validateEmailAddress(emailAddress) && event.key === 'Enter') {
    event.preventDefault();
    submitEmailAddress();
    }
    };

     

    emailValidator.validate() does the trick. Just get rid of the redundant, flawed email check and you're done.

     

  • Thank you for your report. The team is aware of this bug and investigating the issue further.

  • shaihulud2k's avatar
    shaihulud2k
    3 years ago

    Nice stuff, will look into it. But while still not fixed and me getting more annoyed by it, I took another look at EmailForm.js. Further down, where the HTML gets rendered, the redundant (and flawed) email validation also takes place:

    <button
    className={emailValidator.validate(emailAddress) && validateEmailAddress(emailAddress) ? "primary green" : "primary"}
    disabled={emailValidator.validate(emailAddress) && validateEmailAddress(emailAddress) === false}
    onClick={submitEmailAddress}
    >{tryLocalize('WEBSTORE_WEBCLIENT_SUBMIT')}</button>

    Remove that, too, and it should be grand

  • shaihulud2k's avatar
    shaihulud2k
    3 years ago

    @EA_Gunner , this is really getting frustrating now. Two weeks ago a hint of where to fix this was posted, but still nothing?

  • EA_Gunner's avatar
    EA_Gunner
    Icon for EA QV Team rankEA QV Team
    3 years ago

    The issue is still under investigation. The current workaround is to update the email on EA.com and changed it to another email without special characters in the domain. 

  • jassonsch's avatar
    jassonsch
    Rising Newcomer
    3 years ago

    Similar issue. I signed up to use the store and worked for a few days, but now I can only log in to the forum and not the store.

    The Store is telling me to go to the app to connect, and the app is telling me it's already linked. Please fix this issue!

  • It's a joke. The pointers are out there, but EA seems to couldn't care less. This is an easy fix....

About SWGOH Technical Issues

Get help and discuss troubleshooting for Star Wars: Galaxy of Heroes with other players.25,166 PostsLatest Activity: 3 hours ago