Testing Forgot Password feature in PHP [w/ subs]



00:00:00 – in this video we are going to test our
00:00:02 – forgot password feature and it will
00:00:05 – start with mobile applications where
00:00:08 – user will type in their email address
00:00:10 – and tap on send button which will take
00:00:14 – email address provided and will send it
00:00:17 – to our request in your password PHP
00:00:20 – script so let me run this mobile app and
00:00:26 – test this okay so its up and running so
00:00:30 – I need to talk on forgot password button
00:00:32 – and then present it with forgot password
00:00:35 – user interface i will type my email
00:00:38 – address Sergey and perks winding calm
00:00:42 – and I will top on send button now
00:00:47 – okay message is sent we have send you an
00:00:51 – email message please check your inbox
00:00:52 – very good that tells me that my request
00:00:56 – new password HP script works I'll tap on
00:01:00 – okay let me go to my database and I will
00:01:05 – check out the password tokens database
00:01:07 – table to see if I have new token
00:01:10 – generated yes I have a problem here and
00:01:13 – that means I should have an email
00:01:15 – message in my inbox so I let me go to my
00:01:19 – browser window and check for our new
00:01:23 – males
00:01:25 – okay I just got the email and that will
00:01:29 – grab my email on point and i will draw
00:01:32 – bit to the script to the screen okay i
00:01:39 – have a new message password reset
00:01:41 – requested so if i open it and here i
00:01:44 – have my own very short message body
00:01:47 – which says if you would like to create a
00:01:49 – new password please click here so it is
00:01:53 – an HTML link and i should be able to
00:01:55 – click on it i click on it okay and I'm
00:01:59 – take into my create new password a PHP
00:02:02 – page and I see a token is attached here
00:02:06 – it is a stream of some characters very
00:02:09 – random uppercase lowercase digits so
00:02:13 – it's a very secure token now I'm invited
00:02:16 – to type a new password and I can a
00:02:19 – repeating you've answered my previous
00:02:21 – password with digits so this time i will
00:02:23 – create password thingy see some like
00:02:26 – this ABC so now let me provide passwords
00:02:31 – which does not match ABCD save okay and
00:02:37 – i now get a message password do not much
00:02:39 – that this piece of code is also working
00:02:42 – so now with me provide ABC a correct
00:02:47 – password and click on save button save
00:02:52 – very good passwords
00:02:54 – cremation pages display that means my
00:02:58 – password is successfully generated and
00:03:01 – stored in the database and the last step
00:03:04 – was to redirect me to the password
00:03:07 – successfully to reset HP place now let
00:03:09 – me go into my database and if everything
00:03:13 – went well this password talking should
00:03:16 – be deleted because it was used and an
00:03:19 – after it was used it was supposed to be
00:03:22 – deleted now I will refresh this page and
00:03:27 – I see that password talking is gone so I
00:03:31 – think it went oh well so if i go to my
00:03:35 – users table i see only one user with
00:03:39 – email address and encrypted password
00:03:44 – which i cannot read and i have salt
00:03:46 – value which we use to decrypt this
00:03:49 – password so what we going to let me go
00:03:52 – back to my mobile application and try to
00:03:54 – login sign in with the new password
00:03:58 – which is ABC so i'll go Sergei our slime
00:04:02 – diem and i will type password ABC
00:04:06 – signing ok very good it work if i sign
00:04:11 – out now and then i used a different
00:04:14 – password to sign in for example 1 2 3 4
00:04:20 – 5 sign in user is not fast if i use ABC
00:04:26 – signing i'm in very good so our own
00:04:31 – script is working forgot password
00:04:34 – functionality is working and we are done
00:04:39 – with it


Video Url:
http://youtu.be/Tc0ROM3xHB4

Comments

comments