1. Go to https://www.ea.com and sign in.
2. Click profile at the top right of the page then click 'Account Settings'.
3. Click on the option 'Security and Privacy'.
4. Choose 'Two-factor authentication(previously Login Verification)'.
5. Click 'Turn on'.
6. Choose 'Email', then click 'Send code'.
7. Enter the security code you received in your email inbox, then 'Submit'.
8. Click on 'View backup codes'.
9. One-time copy of all six black backup codes then paste them into the fields.
Notice: Each code only could be valid for one time. Please make sure each code you submit is valid.
Click 'Create new code' to get new and valid codes.
Here is a guide video link: https://www.youtube.com/watch?v=qYXy2GTo6DE
For more details, go to https://help.ea.com/en/article/origin-login-verification-information/