code: def update_password(user, password):
      
      user.password = hash_password(password)
      _datastore.put(user)
      send_password_reset_notice(user)
      password_reset.send(app._get_current_object(), user=user)
docs: Update the specified user's password
  
      :param user: The user to update_password
      :param password: The unhashed new password