07.06.2018 - For the $loginData['uname'] i use the email as username, you can simply change it with the username it self ( $user->getUsername() );..