1
00:00:00,330 --> 00:00:07,770
In this part, we are going to add the redirect function such that when they use a site up and when

2
00:00:07,770 --> 00:00:11,180
it is successfully, you should be directed to the home page.

3
00:00:12,300 --> 00:00:21,420
And if you remember me at the early stage, we have sent as calm and to as John Bolton's beach and neighborhood

4
00:00:21,600 --> 00:00:24,900
temporary uses to a chat in the chat room.

5
00:00:26,010 --> 00:00:33,730
Now, we already have a real youth there so we can set it as a user.

6
00:00:34,590 --> 00:00:37,290
So now when we get back to the site up as.

7
00:00:39,360 --> 00:00:48,810
Now we can copy these important U.S. contests and go to the same page and we page here, and we also

8
00:00:48,810 --> 00:00:50,580
need to use the use Konstanz.

9
00:00:51,120 --> 00:00:55,200
So we copy these and also page two of the CI a. page.

10
00:00:57,490 --> 00:01:07,270
And also, we have to use contacts to use this U.S. contest, so we this lie and also a page to sign

11
00:01:07,360 --> 00:01:07,840
a page.

12
00:01:09,900 --> 00:01:17,400
So we go to the fetch functions and last time we already check whether there is errors and this time

13
00:01:17,400 --> 00:01:20,630
we are going to check whether there is a process.

14
00:01:20,940 --> 00:01:29,630
So if there is a use of property, then we are going to start to use the data.

15
00:01:29,640 --> 00:01:30,390
Don't you use, sir?

16
00:01:31,630 --> 00:01:40,780
And since we are going to redirect to the home page, so we have to import the direct component from

17
00:01:41,770 --> 00:01:44,260
that, we add Adam.

18
00:01:45,780 --> 00:01:49,410
And right before we turn to page.

19
00:01:50,780 --> 00:01:59,600
We are going to check if a user exists, so if user, then we are going to redirect

20
00:02:03,710 --> 00:02:05,360
redirect to the homepage.

21
00:02:06,450 --> 00:02:09,190
So now we can go to the page.

22
00:02:10,980 --> 00:02:14,350
Now we just randomly type something.

23
00:02:14,940 --> 00:02:18,750
So, for example, we type Amy

24
00:02:22,890 --> 00:02:28,510
Amy at Gmail dot com and then we type password and then click sign up.

25
00:02:28,920 --> 00:02:31,670
Now it go to the homepage and now you can see.

26
00:02:31,680 --> 00:02:32,680
Welcome, Amy.

27
00:02:33,180 --> 00:02:37,800
And before we go to the room free and we try to send us a message.

28
00:02:39,050 --> 00:02:40,670
So I am Amy.

29
00:02:42,620 --> 00:02:44,450
But when you click on the send button.

30
00:02:45,450 --> 00:02:49,380
You can see there's nothing happen on the inside.

31
00:02:50,920 --> 00:02:59,410
And if you look at the arrows at the server, you can see there is some thing about a problem of the

32
00:02:59,410 --> 00:03:01,360
user ID because.

33
00:03:02,330 --> 00:03:10,040
It cannot be that any user ID and this is because when you look at the homepage, when you set aside

34
00:03:10,070 --> 00:03:10,520
a.

35
00:03:12,470 --> 00:03:20,210
Tom, the idea is like this, but now when you go to the Mongo DB and you can see that it actually to

36
00:03:20,220 --> 00:03:20,480
be.

37
00:03:21,440 --> 00:03:25,190
Underscore ID rather than ID, so.

38
00:03:26,620 --> 00:03:34,350
There are two things that we need to fix is that we go to the chat page and right before the joint,

39
00:03:34,630 --> 00:03:43,510
we need to change this to underscore ideia rather than idee and on the wendon and on rendering the message

40
00:03:43,510 --> 00:03:44,100
component.

41
00:03:44,410 --> 00:03:48,900
These also need to change because we actually do not have idee.

42
00:03:48,940 --> 00:03:49,630
We just have.

43
00:03:50,990 --> 00:03:52,190
Underscore the.

44
00:03:54,170 --> 00:03:57,560
So we go to the front page again.

45
00:03:59,020 --> 00:04:07,930
And then we go to a sign up, and then this time we lose our lives and end at chemo, and then again

46
00:04:07,930 --> 00:04:09,460
we type some password.

47
00:04:10,510 --> 00:04:11,440
We go to.

48
00:04:13,140 --> 00:04:16,520
This has failed to fetch now we reached out to Safa.

49
00:04:17,910 --> 00:04:24,110
And then we trixi up again, and then we go to roam free and now we type Hi.

50
00:04:25,270 --> 00:04:30,760
Now you can see Ellers can pop out the message so everything's fine again.
