CakePHP Forgot your password?

Hi, I am looking to create a simple “Forgot Password” system using CakePHP where the user enters their username / email address and then receives an email with a link that they can click to create a new password.

I googled around but didn't find anything: /

Using CakePHP 1.3

+3
source share
3 answers
  • Display a view with a form so that the user can enter their email address.
  • Have a form message in the controller action reset_password.
  • In the controller action, reset_passwordfind this->data['User']['email']and save the email address in the database table.
  • key token. CHAR (40). reset_password $key = Security::hash(String::uuid(),'sha1',true), key token.
  • URL-, $url = Router::url( ($this->here), true ).'/'.$key reset_password. URL- , , .
  • Email, , URL- .

, .

+12
  • .
  • , . 24 . , , .
  • . ( ).
+3

, :

Spark Plug by Jedt - https://github.com/jedt/spark_plug

CakeDC - https://github.com/CakeDC/users

" ". , , , .

+2

All Articles