Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

197
Visualizações
How to check if user has logged in for the first time in react js

So I'm building a school matching website where users fill out a form and get matched with someone with similar information. I've completed the login and registering section. If a user registers and then logs in for the first time they should have a form to fill out. But if they're coming back and log in later on for a second time they shouldn't have to fill out a form. What are some ways to differentiate and figure out who to give a form to? Thank you

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Don't differentiate on the basis of "has this user logged in before". Instead, focus on the actual requirement: "do we have this user's match-related details".

You'll presumably be storing those details somewhere, so every time a user logs in, you'll need to try and retrieve their details. If none are stored for this user, present them with the form [and then store the information on it once they submit it].

about 4 years ago · Juan Pablo Isaza Relatório

0

What type of form are they filling out.

I would assume you have a backend database that's storing the forms data, which in that case based on a foreign key key relationship you should be able to see if the user has filled out the forms or not. If they don't have forms you then present the forms on the front-end.

Another way to handle this is perhaps move the forms the user needs to fill out before hand into the log-in flow.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda