diff --git a/ecrire/auth/spip.php b/ecrire/auth/spip.php
index 637d57f18805a3fdb61e010d5bc6fa720aa94bd8..3296f5c1a72a6bde635424eb1c596b82db898141 100644
--- a/ecrire/auth/spip.php
+++ b/ecrire/auth/spip.php
@@ -411,7 +411,9 @@ function auth_spip_modifier_pass($login, $new_pass, $id_auteur, $serveur = '') {
 	$c = [];
 	include_spip('inc/acces');
 	include_spip('auth/sha256.inc');
-	$htpass = generer_htpass($new_pass);
+	if ($generer_htpass = charger_fonction('generer_htpass', 'inc', true)) {
+		$htpass = $generer_htpass($new_pass);
+	}
 	$alea_actuel = creer_uniqid();
 	$alea_futur = creer_uniqid();
 	$pass = spip_sha256($alea_actuel . $new_pass);
diff --git a/ecrire/install/etape_3b.php b/ecrire/install/etape_3b.php
index 1f95af2d8467f604ed69e9a0745d88007acd2f0d..498ab6f4793c72c2161c8f495d4a85da768f6a24 100644
--- a/ecrire/install/etape_3b.php
+++ b/ecrire/install/etape_3b.php
@@ -83,7 +83,9 @@ function install_etape_3b_dist() {
 		$pass = unicode2charset(utf_8_to_unicode($pass), 'iso-8859-1');
 		include_spip('auth/sha256.inc');
 		include_spip('inc/acces');
-		$htpass = generer_htpass($pass);
+		if ($generer_htpass = charger_fonction('generer_htpass', 'inc', true)) {
+			$htpass = $generer_htpass($new_pass);
+		}
 		$alea_actuel = creer_uniqid();
 		$alea_futur = creer_uniqid();
 		$shapass = spip_sha256($alea_actuel . $pass);