WEBVTT 00:01.680 --> 00:06.220 So before we go too much further, perhaps we should make sure everything is actually working. 00:06.240 --> 00:11.070 It's been a while since we've run our application, so I'm going to open my terminal and just type make 00:11.070 --> 00:15.050 start to get both the back end and front end running and there they go. 00:15.060 --> 00:15.930 And that's encouraging. 00:16.050 --> 00:18.600 So let's go back to our Web browser and try things out. 00:20.040 --> 00:25.090 So I'll click on log in and I'll leave the terminal window open here, the JavaScript terminal. 00:25.090 --> 00:27.390 And first of all, I'll just put an invalid user. 00:27.720 --> 00:35.850 So Jack Smith dot com with a password secret and I should get unauthorized over here. 00:35.880 --> 00:40.500 So let's try to and we say invalid authentication credentials. 00:40.500 --> 00:41.560 The error is true. 00:41.580 --> 00:42.330 That's perfect. 00:43.350 --> 00:50.340 Now, if you look in the database and let me bring in my database here, if you look under users, we 00:50.340 --> 00:56.130 actually have one user in here and that user has the email of admin at example, dot com and then a 00:56.130 --> 00:56.970 password hash. 00:57.360 --> 01:01.650 And that hash is actually for the password password, all lowercase. 01:02.160 --> 01:10.320 So let's try this time putting in admin at example dot com with the password, password, all lowercase 01:11.160 --> 01:16.200 log in and it should give me a valid response success and it does no error. 01:16.200 --> 01:18.120 Errors false and messages success. 01:18.810 --> 01:28.950 Now what if I enter my email as a d m in at example dot com all mixed case. 01:29.100 --> 01:32.200 They should still work because I should convert that to lowercase. 01:32.220 --> 01:35.250 Let's make sure and success. 01:35.520 --> 01:37.610 OK, so things do seem to be working. 01:38.070 --> 01:43.500 So now we can go back and generate a token and send that to the user and we'll start that in the next 01:43.500 --> 01:43.860 lecture.