From bbc1fd225e594e94a353ff698686a54af77604d9 Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 21 Jan 2021 17:17:48 +0100 Subject: [PATCH] gestion synchro no mail --- src/nineschool-1.0/src/Controller/SecurityController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nineschool-1.0/src/Controller/SecurityController.php b/src/nineschool-1.0/src/Controller/SecurityController.php index 9ba9a88..addb116 100755 --- a/src/nineschool-1.0/src/Controller/SecurityController.php +++ b/src/nineschool-1.0/src/Controller/SecurityController.php @@ -67,7 +67,6 @@ class SecurityController extends AbstractController $attributes = \phpCAS::getAttributes(); // Init - $username = ""; $email = ""; $lastname = ""; $firstname = ""; @@ -93,6 +92,8 @@ class SecurityController extends AbstractController $exists = $user ? true : false; if (!$exists) { + if(empty($email)) $email = $username."@nomail.com"; + $user = new User(); $key = Uuid::uuid4();