PHP OOP Login/Register System: Changing Password (Part 21/23)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Why?

You remain the best of all.

Let me on behalf of all your subscribers (i know they approved of it), say thank you very very much for these great works you are doing.

We appreciate

samuelsele
Автор

I have a need to keep thanking you for these wonderful tutorials. After watching them I can not imagine working any other way but OO way. Thank you.

nemanjastankovic
Автор

only two videos left  this tutorial was a wonderful journey  in the OOP World !
   Thankyou

peace
Автор

One of the best lessons/tutorials so far.
Way to go Alex, keep them coming!
Thanks

tosheen
Автор

I already used an object set in the DB file to keep the input parameters similar to the config object, but I didn't make use of iterating over it when making my checks. I will be integrating that into a bigger login system that I've already been working on, as well as adding the DB functionality as it is shown here. You used the word 'brilliant' several time. I agree, thanks for sharing this system.

andrewcuster
Автор

Your youtube channel is as big as your heart. Thanks! <3

tenten
Автор

As with update.php, the call to $user->update() should be inside a try-catch block.

fml
Автор

I added a 'different' rule as to check whether password_current is different from password_new.

Its the same as 'matches', except != becomes =

rsdntevl
Автор

Why didn't your browser give an error for the Token class the first time you tested the form? There was no 'require_once ...' at the beginning of your code at that moment?

skatethebored
Автор

for some reason my password hash doesn't change in the database if I enter the same password, I got 3 users with the same password and they all have the same hash. so I guess the salt doesn't get added. but after rewatching all I still haven't found the problem. Does anyone know the solution?

goosvandenbekerom
Автор

i get this error "Invalid parameter number: number of bound variables does not match number of tokens", anyone had this ?

edounl
Автор

How can we run 'select * from users' in this code

sunilnatwadiya
Автор

Is there a way when the errors come to give them another name. For example: instead of password_new must match password_new_again would become 'Your new password must match the typed again password' or 'Passwords don't match' or something, without the names of the fields?

christophevandingelen
Автор

With the User::update(). Its updating the database with my new password. But is still throwing the error. Everything is the same. HELP!!!

IAmIceT
Автор

hi I am having problems whit the update of the password. every time i try to update it only catches the exception and dosent update. the update function works ween I update the user name but not ween I try to change the password.

Svintofromhell
Автор

//i not used salt because salt special characthers is unknown in mysql and thats way i cant login, if dont use salt delete the salt row in table or hide it
//if(Hash::make(Input::get('password_current'), $user->data()->salt) !== $user->data()->password){ //with salt
if(Hash::make(Input::get('password_current'), $user->data()->password) !== $user->data()->password){ //without salt, choose your settings: delete the comment that u want use but set comment the another version
echo 'Your password is incorrect';
} else {
//$salt = Hash::salt(32); //with salt
$user->update(array(
=> //without salt
=> Hash::make(Input::get('password_new'), salt),
=> $salt
));

Session::flash('home', 'Jelszavad sikeresen megváltozott!');

}

nezu
Автор

Can somebody please explain to me what salt does?

MrLangam