1 00:00:00,300 --> 00:00:06,310 Indeed, we are going to show how good to use to use contest the contest, provide a way to pass the 2 00:00:06,390 --> 00:00:12,600 time through the computer entries without having to pass the props on manually at every level of them 3 00:00:12,600 --> 00:00:12,960 to cook. 4 00:00:13,040 --> 00:00:21,450 Here you can see we already have to use a contest provided that Ropp the components of home and also 5 00:00:21,450 --> 00:00:26,810 chat so we can post a user and set user to these two components. 6 00:00:27,510 --> 00:00:30,570 And now we are going to add the functions to change the user. 7 00:00:31,140 --> 00:00:34,740 So we plan to use the last thought in Mongo DB. 8 00:00:34,770 --> 00:00:37,920 We will have to name, email, password and ID. 9 00:00:38,340 --> 00:00:42,720 So now we go to the home and create these two function. 10 00:00:43,950 --> 00:00:44,460 One is. 11 00:00:46,130 --> 00:00:46,540 John. 12 00:00:50,080 --> 00:00:55,060 And we create a object with them is equal to John. 13 00:00:57,310 --> 00:01:00,460 And email is equal to John. 14 00:01:03,020 --> 00:01:14,150 That email com and password is equal to one, two, three, and the IP we use the same number is one, 15 00:01:14,150 --> 00:01:14,630 two, three. 16 00:01:16,100 --> 00:01:23,750 And since at last, we have to set the use strong, so we have to use to use content, so we have to 17 00:01:23,750 --> 00:01:27,080 enforce the use contest if we add. 18 00:01:29,180 --> 00:01:32,060 So we also need to in order to use a contest 19 00:01:34,760 --> 00:01:35,240 from. 20 00:01:38,820 --> 00:01:50,220 The other contest, so now we can use that, we should use all 10 user and that user is Pekoe to use 21 00:01:50,220 --> 00:01:52,560 contest user contest. 22 00:01:54,410 --> 00:01:58,670 And we use it and to ask John. 23 00:02:00,220 --> 00:02:02,350 And then here we use as. 24 00:02:05,080 --> 00:02:10,270 And we should have a different password and IP, so we change this to four, five, six. 25 00:02:11,930 --> 00:02:21,080 Until on the street, if I use her, this used a to to spread a user, and because we want to show that 26 00:02:21,080 --> 00:02:24,750 at last the user at home page and chat is the same. 27 00:02:25,130 --> 00:02:26,960 So we also create two buttons. 28 00:02:29,200 --> 00:02:30,850 And then we buy the functions. 29 00:02:33,230 --> 00:02:43,190 And then we create a pattern to go to the chat, so we used the link to rob these buttons, so we have 30 00:02:43,190 --> 00:02:47,250 to import the link from we at Rotterdam. 31 00:02:48,170 --> 00:03:00,310 So we put the link here and we type to the chat because we already said the route, if this is Chad, 32 00:03:00,590 --> 00:03:02,360 because will go to the chat component. 33 00:03:02,610 --> 00:03:08,950 So we go to the chat page and we already do the same things or similar things at that chat. 34 00:03:08,960 --> 00:03:13,790 So we copy this and go to the chat and we paste this one. 35 00:03:14,510 --> 00:03:16,870 And we also need to consume the contents. 36 00:03:16,970 --> 00:03:23,240 So we copy paste and go to the chad and page here, the House. 37 00:03:23,270 --> 00:03:26,090 We want to display the user. 38 00:03:26,540 --> 00:03:30,110 So we copied and pasted here. 39 00:03:30,650 --> 00:03:32,330 Of course, we changed back to check. 40 00:03:33,350 --> 00:03:40,040 And also, we want to go back to the home, so we copied this button and put it inside. 41 00:03:40,070 --> 00:03:40,370 Dave. 42 00:03:41,380 --> 00:03:43,270 And we just used to forget that. 43 00:03:44,580 --> 00:03:45,420 And go to home. 44 00:03:46,690 --> 00:03:54,390 So now we can go to the Web to see whether it goes correct. 45 00:03:54,790 --> 00:04:01,780 So now at this stage you can see the U.S.A. Now we can ask John and we can go to chat. 46 00:04:02,640 --> 00:04:09,480 Now, you can see the page already go to the chat, but you can see the user is John. 47 00:04:11,310 --> 00:04:17,300 Now, if we used that as Tom and go to Chad again, this would also be Tom. 48 00:04:17,550 --> 00:04:22,290 So the current user will not be changed no matter how you go to which page.