Skip to content

Commit

Permalink
Fix issue if mail is empty or not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Truong Ta committed Oct 14, 2014
1 parent eceefa7 commit 809d441
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa-ldap-process.php
Expand Up @@ -63,6 +63,13 @@ function isEmpty($attr) {
$email = $name[2];
$user = $name[3];

// Do not login or create account if mail value is NULL
if ( '' == $email ){
// FIXME somehow print a message
qa_redirect('login');
exit();
}

if($inremember == 'true') {
setcookie("qa-login_lname", $lname, time() + $expire, '/');
setcookie("qa-login_fname", $fname, time() + $expire, '/');
Expand Down

0 comments on commit 809d441

Please sign in to comment.