(e)
| 17 | }; |
| 18 | |
| 19 | const onSignup = (e) => { |
| 20 | e.preventDefault(); |
| 21 | axios |
| 22 | .post("http://localhost:3001/signup", { |
| 23 | username, |
| 24 | secret, |
| 25 | email, |
| 26 | first_name, |
| 27 | last_name, |
| 28 | }) |
| 29 | .then((r) => props.onAuth({ ...r.data, secret })) // NOTE: over-ride secret |
| 30 | .catch((e) => console.log(JSON.stringify(e.response.data))); |
| 31 | }; |
| 32 | |
| 33 | return ( |
| 34 | <div className="login-page"> |
nothing calls this directly
no outgoing calls
no test coverage detected