Merge branch 'master' into dist/envole/7/master
This commit is contained in:
commit
18c9b008ee
|
@ -67,7 +67,6 @@ class SecurityController extends AbstractController
|
||||||
$attributes = \phpCAS::getAttributes();
|
$attributes = \phpCAS::getAttributes();
|
||||||
|
|
||||||
// Init
|
// Init
|
||||||
$username = "";
|
|
||||||
$email = "";
|
$email = "";
|
||||||
$lastname = "";
|
$lastname = "";
|
||||||
$firstname = "";
|
$firstname = "";
|
||||||
|
@ -93,6 +92,8 @@ class SecurityController extends AbstractController
|
||||||
$exists = $user ? true : false;
|
$exists = $user ? true : false;
|
||||||
|
|
||||||
if (!$exists) {
|
if (!$exists) {
|
||||||
|
if(empty($email)) $email = $username."@nomail.com";
|
||||||
|
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$key = Uuid::uuid4();
|
$key = Uuid::uuid4();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue