• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: how to validate user name and password from given array of objects?

Resolved: how to validate user name and password from given array of objects?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

hello i have a hook in app.js:
i sent this hook through Route to a sing in component. how can i validate each customer to his own password?
inside the component i made 2 inputs that sent the value that written to 2 hooks and a button, i wand the validation to happen when im clicking on the button (onClick). and return the index of the object that holds ths given name adn password so i can pass it to the customer page/component. thank you.
singin component:

Answer:

Just find with the set values if it exists or not in your array


If you have better answer, please add a comment about this, thank you!

javascript reactjs use-state
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: VBA – Applying border around the areas with value/text

01/04/2023

Resolved: How can I implement a function depending on picked up items?

01/04/2023

Resolved: Azuer Service Bus SDK not receiving the specified messages

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.