Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,420 --> 00:00:05,850
Now, let's finish implementing the handle submit method in our sign up component.
2
00:00:06,790 --> 00:00:13,090
Now, what we're going to do in handle's summit will be very similar to what we just did in sign up
3
00:00:13,840 --> 00:00:21,160
in our sign up component, we called off create user with email and password passing in email and password
4
00:00:21,730 --> 00:00:22,420
and sign.
5
00:00:22,420 --> 00:00:29,280
And we'll have a very similar method on the auth library that is called Sign In with email and password.
6
00:00:30,040 --> 00:00:32,860
So let's import off from our Firebase Utils.
7
00:00:34,450 --> 00:00:41,920
And now inside of our Handal summit, we have to convert this to an async method and structure off the
8
00:00:41,920 --> 00:00:43,780
email and password.
9
00:00:45,250 --> 00:00:55,360
Off our state and then in our tri block, we are going to a wait for off dot sign in with email and
10
00:00:55,360 --> 00:00:58,600
password passing in the email and the password.
11
00:01:00,100 --> 00:01:04,090
And then if that succeeds, we will clear our state.
12
00:01:05,410 --> 00:01:14,620
And then we'll have our catch with our ER, where we will consult, log the ER if it fails.
13
00:01:15,630 --> 00:01:17,490
Now, let's see our component.
14
00:01:19,190 --> 00:01:21,650
So we are still logging any state changes.
15
00:01:22,620 --> 00:01:24,750
And we need to sign out first.
16
00:01:25,840 --> 00:01:35,110
And let's try and now sign in with our accounts, so we had Michael at Gmail dot com with our password
17
00:01:35,650 --> 00:01:36,310
being.
18
00:01:37,640 --> 00:01:40,310
One to well, what's going on with our pass right here?
19
00:01:42,810 --> 00:01:49,280
Oh, no, it looks like our sign up component has the wrong code or sorry, our sign and component,
20
00:01:49,860 --> 00:01:52,740
we might actually be passing in the wrong value here.
21
00:01:53,550 --> 00:01:54,310
Yes, we are.
22
00:01:54,360 --> 00:01:59,090
OK, we have to fix this value so that it's state dot password.
23
00:02:00,120 --> 00:02:01,440
Sometimes accidents happen.
24
00:02:02,040 --> 00:02:03,570
So now let's check again.
25
00:02:04,700 --> 00:02:12,410
OK, now it seems to be working normally, so let's reset these values, because Michael at Gmail dot
26
00:02:12,410 --> 00:02:18,290
com and password, if we remember, was one, two, three, four, one, two, three, four.
27
00:02:18,860 --> 00:02:20,000
Now, if we sign in.
28
00:02:21,360 --> 00:02:29,900
We see that our user has been updated with our user that was just signed up inside of our database,
29
00:02:30,600 --> 00:02:33,500
we can double check and make sure that this ID matches.
30
00:02:33,810 --> 00:02:39,800
So AT&T F.J. is awesome.
31
00:02:40,020 --> 00:02:43,870
So we know that everything is synched up and properly working.
32
00:02:44,730 --> 00:02:49,800
Now, let's remove that console log here because we won't need it anymore.
33
00:02:51,580 --> 00:02:57,280
And let's just commit this code, because now we finished our sign in and sign up component.
34
00:02:59,030 --> 00:03:00,740
So get add.
35
00:03:02,170 --> 00:03:10,930
Get commit finishing sign in handle submit method.
36
00:03:11,910 --> 00:03:14,610
And then let's get push origin master.
37
00:03:16,380 --> 00:03:17,000
OK.
38
00:03:17,880 --> 00:03:18,680
Let's continue.
3425
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.