question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Disable SignUp

See original GitHub issue

Do 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: image 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yuthcommented, Aug 22, 2018

Fixed in #1478

1reaction
taylorgrahamedbcommented, Dec 29, 2020

I still can’t seem to get this to work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot disable registration - WordPress.org
Hi there, It looks like it is not possible to disable registration in Ultimate Member plugin version 2.4.2, even though wp-admin>Settings>General>”Anyone ...
Read more >
Disabling Signups not working for me · Issue #830 - GitHub
Disable Signup in Admin Interface or via Environment Var, restart the server and sign up with a new email. Expected behaviour. Signups not ......
Read more >
How to disable sign up without UI (#2837) · Issues - GitLab
The answer is that you can't disable signups without using UI. The only place where this is now available is the admin UI....
Read more >
Disable Signup from Auth0 UI and enable social login
Signup widget does not show on Universe UI of Auth0 when it is disabled but when user logins with Social platform it signups...
Read more >
How to disable Signup in Firebase 3.x - Stack Overflow
You cannot disable sign-up without disabling sign-in for all users, which is not what you want. In a typical scenario, developer will start ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found