Amplify-js: [Feedback] ability to disable sign up on sign in component

Created on 14 Jun 2020  路  8Comments  路  Source: aws-amplify/amplify-js

Page: /ui/auth/authenticator/q/framework/vue

Feedback:

It looks like in the latest version of the Vue UI components, there's no way to hide "Create account" on the sign in component. It would be great to have this!

Vue feature-request

All 8 comments

This is a product feature request so will move into the JS repo.

@srchulo - curious what the use case for hiding create new account is? To not confuse users?

Most of the apps that I build are invite only and don't usually support a sign up flow. Or it's a more complicated sign up flow that they don't do on the site, but we handle together in a meeting before they can actually login.

And yes, to not confuse users. I actually have sign ups turned off in the user pool, so you can go through the create account flow, but then you get an 400 error.

This looks to be a duplicate of another recent feature request. I'm going to close this in favor of the (slightly) older issue: https://github.com/aws-amplify/amplify-js/issues/6089

@amhinson thanks for linking that issue. That actually had a solution for me!

<amplify-authenticator>
    <amplify-sign-in slot="sign-in">
        <!-- hide sign up flow https://github.com/aws-amplify/amplify-js/issues/6089#issuecomment-644438802 -->
        <div slot="secondary-footer-content"></div>
    </amplify-sign-in>

    <nuxt />
    <amplify-sign-out></amplify-sign-out>
</amplify-authenticator>

I have just added a prop to the sign-in component to handle this more intuitively if you'd like to use it instead:

<amplify-sign-in slot="sign-in" hide-sign-up></amplify-sign-in>

@jordanranz That works great, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oste picture oste  路  3Comments

cosmosof picture cosmosof  路  3Comments

callmekatootie picture callmekatootie  路  3Comments

shinnapatthesix picture shinnapatthesix  路  3Comments

lucasmike picture lucasmike  路  3Comments