Compare commits

..

No commits in common. "38ec005383c90f4855dbb765b80b69eeb484b3b6" and "2f6710a4ed448038fb727ae292973c86bec275d8" have entirely different histories.

View File

@ -67,6 +67,7 @@ class SecurityController extends AbstractController
$attributes = \phpCAS::getAttributes();
// Init
$username = "";
$email = "";
$lastname = "";
$firstname = "";
@ -84,13 +85,14 @@ class SecurityController extends AbstractController
if(isset($attributes[$this->getParameter('casFirstname')]))
$firstname = $attributes[$this->getParameter('casFirstname')];
// Cas nomail
if(empty($email)) $email = $username."@nomail.com";
$user = $em->getRepository('App:User')->findOneBy(array("username"=>$username));
$exists = $user ? true : false;
if (!$exists) {
if(empty($email)) $email = $username."@nomail.com";
$user = new User();
$key = Uuid::uuid4();