src/Auth.php
public function changePasswordWithoutOldPassword($newPassword) {
		if ($this->isLoggedIn()) {
			$newPassword = self::validatePassword($newPassword);
			$this->updatePasswordInternal($this->getUserId(), $newPassword);

			try {
				$this->logOutEverywhereElse();
			}
			catch (NotLoggedInException $ignored) {}
		}
		else {
			throw new NotLoggedInException();
		}
	}
public function changePasswordWithoutOldPassword($newPassword) {
		if ($this->isLoggedIn()) {
			$newPassword = self::validatePassword($newPassword);
			$this->updatePasswordInternal($this->getUserId(), $newPassword);

			try {
				$this->logOutEverywhereElse();
			}
			catch (NotLoggedInException $ignored) {}
		}
		else {
			throw new NotLoggedInException();
		}
	}
public function changePasswordWithoutOldPassword ( $ newPassword ) { if ( $ this -> isLoggedIn ( ) ) { $ newPassword = self :: validatePassword ( $ newPassword ) ; $ this -> updatePasswordInternal ( $ this -> getUserId ( ) , $ newPassword ) ; try { $ this -> logOutEverywhereElse ( ) ; } catch ( NotLoggedInException $ ignored ) { } } else { throw new NotLoggedInException ( ) ; } }
Changes the currently signed-in user's password without requiring the old password for verification

@param string $newPassword the new password that should be set
@throws NotLoggedInException if the user is not currently signed in
@throws InvalidPasswordException if the desired new password has been invalid
@throws AuthError if an internal problem occurred (do *not* catch)
Changes the currently signed - in user s password without requiring the old password for verification