From 425fe939536afbce86f868b4dee54b1bf784ef13 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Wed, 8 Dec 2010 08:44:19 +0000
Subject: [PATCH] Report de [16522]

---
 squelettes-dist/formulaires/inscription.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/squelettes-dist/formulaires/inscription.php b/squelettes-dist/formulaires/inscription.php
index fbcdaad5f0..14e680df2c 100644
--- a/squelettes-dist/formulaires/inscription.php
+++ b/squelettes-dist/formulaires/inscription.php
@@ -195,7 +195,7 @@ function test_login($nom, $mail) {
 	// il faut eviter que le login soit vraiment trop court
 	if (strlen($login_base) < 3) {
 		$mail = strtolower(translitteration(preg_replace('/@.*/', '', $mail)));
-		$login_base = preg_replace("/[^\w\d]/", "_", $nom);
+		$login_base = preg_replace("/[^\w\d]/", "_", $mail);
 	}
 	if (strlen($login_base) < 3)
 		$login_base = 'user';
-- 
GitLab