PHP Tutorials: Register & Login: User password change (Part 3)

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

Official site

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

Your tutorials of php are the best in the internet. Thanks for the videos.

italoven
Автор

I think the way to probe the new password is over 25 and under 6 is doing it, make an "if" over //check two new passwords and put the check to new password inside " an else" write the strlen code like in registration page. Oh! and elimnate the md5 fomr the begining and make an md5 after checking strlen. I hope you understand my english.

sayaro
Автор

i think you speak wery well and i loved this tutorial.
thanks.

gkhnlts
Автор

what i did with this.. is made an Administrator only page.. using his tutorials =) and then made it so that the admins can change a users password by typing hte ID of the user and a new password..

Just have to change "SELECT password FROM users WHERE username='$user'"

to "SELECT password FROM users WHERE id='$id'"
and the id is equal to a post of the id ( $id = $_POST['id']; )

CookieEater
Автор

GOSH SO MUCH FOR TWO TUT'S.

but actually these are from 09, you should do some updates, like forgot password, and maybe some security updates.

qazwsx
Автор

if you want to add string length you'll need to add it exactly like you did with the register.php page except obviously you'll change the variables from $password to $newpassword and from $repeatpassword to $repeatnewpassword. You don't encrypt the password in the "//check fields" section, instead you encrypt them in the "//encrypt password" section in the else statement below the statement.

SkySkraper
Автор

You're awesome! You make it seem so simple. Thank you sooo much!

vjoho
Автор

@digesteddonkey

also you have to change
"UPDATE users SET password='$password' WHERE id='$id'" hte SET query.

CookieEater
Автор

Thank you so much for this wonderful tutorial it helps me for my thesis great tutorial..

unknow
Автор

Refer to Alex's video on making register.php in that video he show you have to put parameters on inputs. for example the password must be at least 6 characters long

sticksiscool
Автор

@sukkejens Like what? You now know how to change data stored in your database, so that covers a lot of profile editing. phpacademy also has a profile on uploading pictures to the database.

Grkgermn
Автор

Revisa si no te falta o si agregastes mal un ; en alguna otra parte del codigo.

sayaro
Автор

@sayaro thanx alot man, had a lil issues still but this was a major help n guide

richirozay
Автор

*Revisa si te falta o si agregastes mal un ; en todo el codigo.

sayaro
Автор

my new passwords are generating different md5 values and hence not getting updated in database. I also tried php password_hash function. A different has is created for both new password and repeat new password.

growwithdesign
Автор

i didn't understand about that md5 hash code in part 2. i keep on having problems about that. could you explain it more clearer? can somebody help?

VillieJoeGorra
Автор

i got the same notice (not an error, a notice) i got a couple years back when i watched this series:

Notice: Undefined index: submit in ...\changepassword.php

this also happened on the register page, but everything works fine, its just annoying.

gabelossustheth
Автор

How do I actually check the length of the new password?

NotTheBestPvP
Автор

In regards to what your saying, I've tried it and it did not work.
Now unless ive done an error in my scripting, then I know im right.

MrHondros
Автор

hi everybody my problem in this code is:i wont to change the old password and when i change it, the password isn't uptade (change in database) it is the same.helppp please.

andyyIT
welcome to shbcf.ru