Verify Password is the same , and Update it .

Posted 6 months ago by murilo

Hi , I am trying to update the password of the user . But before update , the user must type the same password , like this -

  1. verify if the current password is the same .
  2. update the password . ( new one )

I am making like this ->

 if( $this->password !=  bcrypt($request['password'])){
            return true;

But It is not working like this with bcrypt() .

Does some one knows how could I do it ?


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.