Can't Disable SignUp
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior? the withAuthenticator HOC only shows the default components, even when an array of components is passed as the third argument.
I’m trying to remove the SignUp component (since my User Pool isn’t configured to allow it) using this code:
export default withAuthenticator(App, true, [
<Greetings />,
<SignIn />,
<ConfirmSignIn />,
<VerifyContact />,
<ForgotPassword />
])
Instead this is what loads: I see the same behavior when using the <Authenticator /> component.
What is the expected behavior? I expected to see only the SignIn and ForgotPassword components loaded on the login page.
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions? package.json dependencies:
"dependencies": {
"aws-amplify": "^1.0.6",
"aws-amplify-react": "^1.0.6",
"isomorphic-fetch": "^2.2.1",
"lodash.find": "^4.6.0",
"lodash.get": "^4.4.2",
"lodash.orderby": "^4.6.0",
"moment": "^2.22.2",
"mysql": "github:mysqljs/mysql",
"next": "^6.1.1",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-modal": "^3.5.1",
"react-protected-mailto": "^1.0.3"
},
"devDependencies": {
"@zeit/next-sass": "^0.2.0",
"node-sass": "^4.9.3",
"serverless": "^1.30.0",
"serverless-plugin-include-dependencies": "^3.1.1",
"serverless-plugin-inject-dependencies": "0.0.5",
"serverless-plugin-warmup": "^3.6.2-rc.1"
}
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG';
in your app.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Fixed in #1478
I still can’t seem to get this to work?