Last active
March 9, 2022 14:44
-
-
Save jasonevans1/00cfeac70842786c373a5b02e535a6ea to your computer and use it in GitHub Desktop.
Magento 2 Coding Test Requirements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The company ABC wants to review registered customers before they can login to their account on the site. | |
To validate an account, they want every new created accounts on the site to be set as deactivated by default with a flag they'll have control over in the Magento customer admin section. | |
Acceptance Criteria | |
1. Create a module "Abc_Customer" | |
2. Create a customer attribute "activated" programmatically | |
- Attribute created with install script | |
- Attribute of type dropdown Yes/No | |
- Attribute visible and manageable in admin panel | |
- Default value will be "No" | |
3. During the customer logging process, block user from logging in if account is set as deactivated | |
- Redirect user to login page with error message if "activated" is "No" | |
- Redirect user to dashboard if "activated" is "Yes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment