public function checkCurrentPassword($data) { $this->id = AuthComponent::user('id'); $password = $this->field('password'); return( AuthComponent::password($data['User']['current_password'] ) == $password); }
public function checkCurrentPassword($data) { $this->id = AuthComponent::user('id'); $password = $this->field('password'); return( AuthComponent::password($data['User']['current_password'] ) == $password); }