MCPcopy Create free account
hub / github.com/codemistic/Web-Development / register

Function register

linkedin-clone/src/Login.js:31–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30 }
31 const register = () => {
32 if (!name) {
33 return alert('Please enter a full name!');
34 }
35
36 auth.createUserWithEmailAndPassword(email, password).then(
37 (userAuth) => {
38 userAuth.user.updateProfile({
39 displayName: name,
40 photoURL: profilePic,
41 })
42 .then(() => {
43 dispatch(login({
44 email: userAuth.user.email,
45 uid: userAuth.user.uid,
46 displayName: name,
47 photoURL: profilePic,
48 })
49 )
50 })
51 })
52 .catch((error) => alert(error))
53 }
54 return (
55 <div className='login'>
56 <img src="https://logos-world.net/wp-content/uploads/2020/04/Linkedin-Logo-2011-2019.png" alt="" />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected