All language subtitles for 5. Register user

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French Download
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,210 --> 00:00:05,790 In the previous lecture, we have created the user module and we have dispatched the register action 2 00:00:05,790 --> 00:00:12,690 from registered page in this lecture will work on the actual Firebase authentication of functionality. 3 00:00:14,190 --> 00:00:18,570 Let's start up a new tab in your browser, or let's navigate to the Firebase console. 4 00:00:18,840 --> 00:00:20,700 So let's find your firebase. 5 00:00:22,700 --> 00:00:26,150 Firebase will go to the console, so we'll see how the application. 6 00:00:26,750 --> 00:00:34,100 OK, so Firebase go to the console and they console, go to the ID tab console, find your project and 7 00:00:34,100 --> 00:00:37,730 you probably already on the page they're exchanging. 8 00:00:37,730 --> 00:00:38,440 Are you here? 9 00:00:39,460 --> 00:00:44,530 And on the left hand side, you can see authentication, let's think of that dedication, have a different 10 00:00:44,740 --> 00:00:48,540 strategies, you can get your authentication done. 11 00:00:48,850 --> 00:00:50,200 But first, let's go here to get started. 12 00:00:52,450 --> 00:00:57,340 OK, so get started and we can choose from the outer decorations here, how we would like to authenticate. 13 00:00:58,280 --> 00:01:02,000 I will choose the other than normal one email and the password. 14 00:01:02,510 --> 00:01:04,700 OK, so let's go with an email and a password. 15 00:01:05,540 --> 00:01:07,790 Email and password will enable it. 16 00:01:07,790 --> 00:01:08,360 And that's it. 17 00:01:08,540 --> 00:01:09,170 Just save it. 18 00:01:11,410 --> 00:01:17,620 OK, so save it, that's our provider, and we should see that it's enabled here in a password is enabled, 19 00:01:17,620 --> 00:01:18,550 that's very important. 20 00:01:20,000 --> 00:01:21,620 Authorized domains you can see here. 21 00:01:21,680 --> 00:01:23,000 The authorized domains for these. 22 00:01:23,940 --> 00:01:25,170 Is the local host here? 23 00:01:25,230 --> 00:01:27,870 It's a very important to have your local hosts so we can test it out. 24 00:01:30,340 --> 00:01:34,690 OK, so if it is, we can also go to the user types of animals, so when you click here on the users 25 00:01:34,690 --> 00:01:36,660 on the left hand side, you will see it's empty. 26 00:01:36,670 --> 00:01:41,440 We don't have any users, but after that, after this lecture, you should have here a couple of users. 27 00:01:42,340 --> 00:01:44,740 It should work so. 28 00:01:45,670 --> 00:01:50,590 They're going to use our module because that's where we need to handle the changes, we are sending 29 00:01:50,740 --> 00:01:51,250 form data. 30 00:01:51,250 --> 00:01:55,630 So now it's up to the user module to get this data and to work with them. 31 00:01:56,470 --> 00:01:59,940 So I've got to use our module able to close all of the other files so they're not bothering us. 32 00:02:01,650 --> 00:02:06,510 And first of all, important here, a couple of helper factions here, only two functions, so it's 33 00:02:06,510 --> 00:02:11,570 important here I have curly brackets and let's back here, get out and also function. 34 00:02:11,610 --> 00:02:19,110 Create a user with email and password, create user with email and password. 35 00:02:19,140 --> 00:02:23,790 It's quite a long name and you need to import it from Firebase flesh out. 36 00:02:26,170 --> 00:02:28,600 Like this, make sure it's spelled correctly. 37 00:02:29,320 --> 00:02:32,140 It is correct you will see her errors that you will use these functions. 38 00:02:33,530 --> 00:02:39,480 You can enable that email and a password to be donated and what the Arab world will be doing by the 39 00:02:40,580 --> 00:02:46,200 first look that they're very able to look out and from obviously they'll start to get out this. 40 00:02:46,490 --> 00:02:52,370 They should get us the object containing some functionalities related to our authentication of the Firebase. 41 00:02:53,060 --> 00:02:54,380 That's what that's required. 42 00:02:55,300 --> 00:03:01,090 Danny, go right here to try and catch block when you're working with the authentication, you would 43 00:03:01,090 --> 00:03:07,000 like to wrap your functionality into tribe, so if something goes wrong, you are not grab your application, 44 00:03:07,000 --> 00:03:08,050 but you will catch the error. 45 00:03:09,180 --> 00:03:14,880 OK, so in try block, but you want to do is to call the function here, create user with email and 46 00:03:14,880 --> 00:03:15,510 password. 47 00:03:16,320 --> 00:03:22,320 This will be asynchronous function because it's returns promise civil like the register as a async function. 48 00:03:24,000 --> 00:03:30,210 In a tribe blog, you will call her Create User ID, email, password your prefixes to evade to synchronize 49 00:03:30,210 --> 00:03:33,300 it your buzzer out and email pasdar. 50 00:03:33,320 --> 00:03:35,340 Also email and the password. 51 00:03:35,880 --> 00:03:42,060 OK, so it looks like this evade, create user ID and password and you are passing that out. 52 00:03:42,720 --> 00:03:45,990 It goes from here and the email and password we got from register. 53 00:03:47,490 --> 00:03:50,250 OK, and that's basically down the road to skin color here. 54 00:03:50,280 --> 00:03:51,870 That's something that we have been successful. 55 00:03:51,870 --> 00:03:56,680 So we've got here, there's been success at your user use. 56 00:03:56,700 --> 00:04:00,210 There has been a registered user has been registered. 57 00:04:02,400 --> 00:04:08,490 OK, by the way, from dysfunctional venues that was registered, you're getting something called user 58 00:04:08,490 --> 00:04:15,990 credentials to convert your user credentials because their credentials and from these are conventions, 59 00:04:15,990 --> 00:04:17,790 you can extract the user itself. 60 00:04:18,540 --> 00:04:21,570 So the user have just registered so you can return from here. 61 00:04:22,320 --> 00:04:24,270 User credentials dot the user. 62 00:04:25,950 --> 00:04:31,380 In the catch you below, you will get error so you can check for error here and just simple of an ad 63 00:04:31,380 --> 00:04:35,910 or Hepburn just console.log it down to just console a console error that something went wrong in the 64 00:04:36,300 --> 00:04:37,320 error message. 65 00:04:40,060 --> 00:04:46,120 Oh, OK, so just guys, to recapitulate a legislative function that is very simple, it forbids the 66 00:04:46,120 --> 00:04:47,920 only things you need is our. 67 00:04:48,820 --> 00:04:54,520 All right, and the function cleared to use their email and the password, create user with email and 68 00:04:54,520 --> 00:04:55,210 password. 69 00:04:55,390 --> 00:05:01,300 Accepting the out, you get here and email the password from your forum you will sent here. 70 00:05:01,870 --> 00:05:06,610 If everything is geared to your ID and fighter bases and about, you should be able to create the user 71 00:05:06,880 --> 00:05:09,550 and Firebase will return to you user credentials. 72 00:05:09,560 --> 00:05:16,180 So basically information about the user you have just added into the Firebase that it'll already alert 73 00:05:16,180 --> 00:05:23,080 this capability to the user credentials of the user if something goes wrong here in this function. 74 00:05:23,350 --> 00:05:28,810 Specifically, this function, so you'll provide the drug out here, or they will provide something 75 00:05:28,990 --> 00:05:29,830 some wrong data. 76 00:05:30,280 --> 00:05:34,840 Then this will fail and they will jump into the catch block, cage or block. 77 00:05:34,850 --> 00:05:35,920 The therapies will pass you. 78 00:05:35,920 --> 00:05:41,530 The error object and error object contains a message properly, and the message properly is a description 79 00:05:41,530 --> 00:05:42,700 of the error you are getting. 80 00:05:43,630 --> 00:05:44,800 So that's what's happening here. 81 00:05:47,990 --> 00:05:48,920 OK, let's save it. 82 00:05:50,200 --> 00:05:54,940 Go to a better browser and let's try to register users so any email you want, so I let her test at 83 00:05:54,940 --> 00:05:56,530 the Gmail dot com. 84 00:05:58,170 --> 00:05:59,830 Now about your password test. 85 00:06:00,190 --> 00:06:01,550 That's I will say, eloquent here. 86 00:06:01,580 --> 00:06:02,140 Sign up. 87 00:06:03,500 --> 00:06:04,390 OK. 88 00:06:04,430 --> 00:06:11,450 And actually, the user has been registered to have slow internet, so it took a while about registering. 89 00:06:11,700 --> 00:06:16,720 We could also display here are some loader acorn and disabled buttons, but we will handle it later. 90 00:06:16,730 --> 00:06:18,560 But the user has been registered, which is good. 91 00:06:19,450 --> 00:06:23,260 But it will go here to exchange a refresh on the user top. 92 00:06:24,040 --> 00:06:26,470 And I should have here my first user, I have just registered. 93 00:06:26,560 --> 00:06:27,880 That should be this test user. 94 00:06:29,340 --> 00:06:30,870 So let's wait for a fresh. 95 00:06:33,250 --> 00:06:33,870 OK. 96 00:06:34,060 --> 00:06:36,160 Take some time, and we have here. 97 00:06:37,350 --> 00:06:44,400 That's the Gmail dot com providers means email on a password created, signed in, and here is my user 98 00:06:44,400 --> 00:06:44,640 ID. 99 00:06:44,730 --> 00:06:50,170 So some unique identifier of the user that has been auto generated for me and that's my user. 100 00:06:50,370 --> 00:06:51,030 It's working. 101 00:06:51,630 --> 00:06:53,580 They can also debug it for a second user. 102 00:06:53,700 --> 00:06:55,290 So you'll see what we are getting here. 103 00:06:55,920 --> 00:06:56,550 Debugger. 104 00:06:59,010 --> 00:07:03,660 You can go here and I will just simply refresh. 105 00:07:04,710 --> 00:07:13,020 And open here, and I will write you the password email to Philip at Gmail, dot com and the password 106 00:07:13,020 --> 00:07:14,280 test test again. 107 00:07:14,670 --> 00:07:18,990 I'll sign up and we should jump into our code or not. 108 00:07:19,000 --> 00:07:19,890 Yeah, OK. 109 00:07:21,070 --> 00:07:24,610 If you don't see where you are in the code, you just click here, this arrow, the second one and you 110 00:07:24,610 --> 00:07:26,650 should be in the register, right? 111 00:07:27,860 --> 00:07:30,110 And you should see their credentials. 112 00:07:30,470 --> 00:07:35,000 Then you will hover over these credentials, you'll see about getting on the user credentials user and 113 00:07:35,000 --> 00:07:35,990 that's your user data. 114 00:07:36,000 --> 00:07:39,680 So you have here, for example, access token display name is. 115 00:07:39,980 --> 00:07:43,400 You don't have any any and name associated with this account. 116 00:07:43,880 --> 00:07:44,920 Here is your email. 117 00:07:44,930 --> 00:07:49,250 I have been provided email verified that you verified. 118 00:07:49,250 --> 00:07:54,860 You can see a link and provide you basically any email into the input so that basically the email is 119 00:07:54,860 --> 00:07:55,730 not verified yet. 120 00:07:56,810 --> 00:08:00,200 And all these informations you have, you have here. 121 00:08:02,750 --> 00:08:11,240 OK, but that's really not a concern of us, the other data we just need to have been to just have a 122 00:08:11,480 --> 00:08:15,110 be sure that you have your email and the IDs here you kids called your ID. 123 00:08:15,350 --> 00:08:16,430 As you can see down here. 124 00:08:17,850 --> 00:08:24,330 All right, guys, I will show you what, what can happen when you will get error so everybody will 125 00:08:24,330 --> 00:08:25,290 try to provide here. 126 00:08:27,090 --> 00:08:32,890 Our producer incorrect data, so it's the email will be null and the pass will be no, no. 127 00:08:32,920 --> 00:08:35,430 So Busselton lawsuit, this will for sure fail now. 128 00:08:36,300 --> 00:08:37,470 I cannot even compile it. 129 00:08:37,470 --> 00:08:40,470 So I just need to remove the email and password because are not using it. 130 00:08:40,470 --> 00:08:44,780 So just for now, for testing purposes, I will leave here empty register and we'll get there. 131 00:08:44,790 --> 00:08:45,240 No, no. 132 00:08:46,500 --> 00:08:47,130 Let's save it. 133 00:08:48,120 --> 00:08:52,470 Make the browser open the console so you can see what will happen and I will sign up. 134 00:08:55,500 --> 00:09:00,470 OK, so you can see up there while I get to hear this error message from my console at our Firebase 135 00:09:00,470 --> 00:09:02,750 error of administrated operation. 136 00:09:03,720 --> 00:09:05,640 OK, so that's what will happen, will be on the register. 137 00:09:06,690 --> 00:09:07,490 I will get better. 138 00:09:07,660 --> 00:09:08,820 Is coming from the catch here. 139 00:09:09,720 --> 00:09:12,270 OK, let's review the changes so we have here for sure. 140 00:09:12,420 --> 00:09:18,840 Underscore email password and this should work for us before it gets here a semicolon in the end. 141 00:09:21,400 --> 00:09:23,410 OK, I will finish the lecture here. 142 00:09:24,130 --> 00:09:25,570 We have that two users now. 143 00:09:25,870 --> 00:09:28,140 But as you see here, are there a couple of problems? 144 00:09:28,150 --> 00:09:34,870 We don't have user username, double checking for a confirmation password, and overall we would like 145 00:09:34,870 --> 00:09:38,020 to maybe provide a more detailed, maybe more data to the user. 146 00:09:38,230 --> 00:09:39,070 How to handle it. 147 00:09:39,070 --> 00:09:41,280 I'll be showing you in the next lecture. 148 00:09:41,620 --> 00:09:42,310 See you there, guys. 14317

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.