working login for students and logout
This commit is contained in:
parent
9c07472aca
commit
28dd929927
2 changed files with 32 additions and 14 deletions
|
|
@ -19,9 +19,9 @@ function SignUpForm() {
|
|||
const handleOnSubmit = (evt) => {
|
||||
evt.preventDefault();
|
||||
|
||||
const { name, email, password } = state;
|
||||
const { assignmentID, password } = state;
|
||||
alert(
|
||||
`You are signed in with name: ${name} email: ${email} and password: ${password}`
|
||||
`You are signed in with assignmentID: ${assignmentID} and password: ${password}`
|
||||
);
|
||||
|
||||
for (const key in state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue