Merge branch 'master' into dist/envole/7/master

This commit is contained in:
Arnaud Fornerot 2021-01-21 17:30:24 +01:00
commit 18c9b008ee
1 changed files with 2 additions and 1 deletions

View File

@ -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();