Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,300 --> 00:00:03,690
So let's open our sign in and sign up component.
2
00:00:05,430 --> 00:00:13,560
Let's import our new sign up component into this component components sign up, sign up component.
3
00:00:15,190 --> 00:00:17,920
And then let's just place it underneath our Sinon.
4
00:00:19,770 --> 00:00:24,080
Now, in order for our component to sit side by side, we need to apply some styles.
5
00:00:25,230 --> 00:00:26,580
So let's go to our stylesheet.
6
00:00:27,750 --> 00:00:35,490
And let's do sign in and sign up class with the style where the width is eight hundred and fifty pixels.
7
00:00:37,080 --> 00:00:39,540
And then we want to display a flex.
8
00:00:40,590 --> 00:00:45,000
And we want to justify content space between.
9
00:00:47,640 --> 00:00:56,070
And then we want to also make it so that our margin on the left and the right is automatic, so we'll
10
00:00:56,070 --> 00:01:02,190
do a margin top and bottom of, let's say, 30 pixels for now.
11
00:01:03,600 --> 00:01:08,250
And then Otto, and now if we save and we go back to our component.
12
00:01:09,840 --> 00:01:13,150
We see that we have our sign in and sign up now.
13
00:01:13,800 --> 00:01:14,190
Now.
14
00:01:15,210 --> 00:01:22,230
Let's actually see if we're actually saving this user profile the way that we expect it to.
15
00:01:23,780 --> 00:01:29,720
Let's go to our abcess and let's just console log the state whenever it changes.
16
00:01:35,550 --> 00:01:38,010
And now let's open up our terminal.
17
00:01:39,310 --> 00:01:45,130
So we currently have a user, right, we have our current user, which is set to this oh, and then
18
00:01:45,130 --> 00:01:47,500
we have a user being set, we might have accidentally did this.
19
00:01:47,500 --> 00:01:48,070
Oh.
20
00:01:49,630 --> 00:01:51,370
We've got to change this current user.
21
00:01:52,490 --> 00:01:54,120
It's a little mistake we made earlier.
22
00:01:54,890 --> 00:02:00,110
OK, so now our current user is set because we are signed in, so let's sign out.
23
00:02:01,010 --> 00:02:06,110
That's refresh and now let's create our new account.
24
00:02:07,190 --> 00:02:13,520
So I'm going to use, let's say, just a random account, it doesn't actually matter what's wrong,
25
00:02:13,520 --> 00:02:14,600
value display name.
26
00:02:14,600 --> 00:02:15,740
I'm going to call me Mike.
27
00:02:16,620 --> 00:02:18,290
I'm going to use Michael at Gmail.
28
00:02:18,290 --> 00:02:22,940
Dot com password will be one, two, three, four, one, two, three, four.
29
00:02:23,240 --> 00:02:24,530
And then one, two, three, four.
30
00:02:24,560 --> 00:02:29,360
Now, let's say if we try it right, if we have the wrong password, we'll get the alert that says passwords
31
00:02:29,360 --> 00:02:30,600
don't match, which is what we want.
32
00:02:31,400 --> 00:02:33,650
So one, two, three, four, four, correct password.
33
00:02:33,650 --> 00:02:34,970
And now if we hit, sign up.
34
00:02:36,720 --> 00:02:39,300
We've got a 400 off operation not allowed.
35
00:02:40,050 --> 00:02:44,370
We did not enable email and password in our authentication.
36
00:02:44,730 --> 00:02:52,630
So just as we did earlier with the Google Sinon, we got to do the same thing with our e-mail and password.
37
00:02:53,070 --> 00:02:55,490
So here we just have to enable it.
38
00:02:57,000 --> 00:03:04,230
And we just had save email link, password list will actually send an email to that email that they
39
00:03:04,230 --> 00:03:08,940
provide and then if you click confirm, it will automatically authenticate them.
40
00:03:08,940 --> 00:03:09,890
But we don't want that.
41
00:03:10,770 --> 00:03:11,460
So let's.
42
00:03:16,070 --> 00:03:16,750
And there we go.
43
00:03:17,700 --> 00:03:24,270
If I fired a couple of times, right, but there is our current user object created app, they use a
44
00:03:24,270 --> 00:03:26,700
different timestamp than are created date object.
45
00:03:26,700 --> 00:03:26,970
Right.
46
00:03:27,150 --> 00:03:31,040
But there we go, display name, email and then the ID.
47
00:03:31,800 --> 00:03:34,700
And now if we look inside of our database, right.
48
00:03:34,710 --> 00:03:39,840
If we look in our off, let's not look at our database here in our auth, we see that we have this Michael
49
00:03:39,840 --> 00:03:43,130
user where the provider they signed in with was the email.
50
00:03:43,830 --> 00:03:51,090
But if we check our database, we'll see that we now have a third user, which is the one that we just
51
00:03:51,090 --> 00:03:53,070
made right here.
52
00:03:55,360 --> 00:04:02,440
Let's just delete this user that we wrote manually, and we can do this by hitting right here.
53
00:04:03,480 --> 00:04:04,290
DeLay document.
54
00:04:05,980 --> 00:04:08,590
This is for the user that we manually created.
55
00:04:10,040 --> 00:04:17,240
And now we have two users, one created by our email and password and one created by Google.
56
00:04:17,600 --> 00:04:23,690
Now let's commit our code before we finally implement Sinon with email and password.
57
00:04:24,840 --> 00:04:25,200
Now.
58
00:04:26,560 --> 00:04:27,730
Let's check its status.
59
00:04:28,840 --> 00:04:33,670
OK, let's get add all our stuff and we'll write a message that says.
60
00:04:34,600 --> 00:04:40,270
Implemented Firebase, Utils included.
61
00:04:41,340 --> 00:04:48,600
Ability to store authenticated users into our fire store database.
62
00:04:50,100 --> 00:04:51,810
And that will push this up to master.
63
00:04:54,270 --> 00:04:55,640
And continue with the next lesson.
5625
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.