Giter Club home page Giter Club logo

Comments (7)

ericclemmons avatar ericclemmons commented on July 28, 2024

I do not want users to click on this link for Sign In because I have special Sign Up requirements and I want them to use my customized form.

If you could entirely replace either form to meet your needs, then is the need to hide one or the other still necessary?

Screen Shot 2021-10-06 at 1 22 47 PM

from amplify-ui.

defish1962 avatar defish1962 commented on July 28, 2024

Yes that would be a workable solution for me. Thanks!

from amplify-ui.

ErikCH avatar ErikCH commented on July 28, 2024

Hi @defish1962

With the new authenticator this is resolved.

As for your question on linking directly to the Create Account / Sign Up page that can be done with our initialState prop. Basically, you can specify which state the authenticator should start in.

export default withAuthenticator(App, {
  initialState: 'signUp',
});

As for hiding the Sign in, you can hide both tabs at the top of the authenticator using CSS.

.amplify-tabs {
  display: none;
}

You could use this with the initial state so a user is unable to go to the signIn page. However, after the user signs up, and logs in, after they logout, they'll be redirected to the sign in page.

Let me know if this works for you.

from amplify-ui.

ErikCH avatar ErikCH commented on July 28, 2024

We've also added a slot to add in your own custom text! Documentation on that is forthcoming.

from amplify-ui.

ErikCH avatar ErikCH commented on July 28, 2024

Closing this issue for now, if you need more assistance let us know!

from amplify-ui.

ErikCH avatar ErikCH commented on July 28, 2024

I just merged this in! It should be available in our next release. There will be a new hideSignUp prop you can pass in, to hide the sign up page.

from amplify-ui.

defish1962 avatar defish1962 commented on July 28, 2024

Awesome! Thanks so much!

from amplify-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.