working user authentication w/ fb and plain login
This commit is contained in:
@@ -28,6 +28,20 @@ class User extends BaseUser
|
||||
|
||||
private $facebookAccessToken;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="real_name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $realName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="nick_name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $nickName;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
@@ -75,4 +89,52 @@ class User extends BaseUser
|
||||
{
|
||||
return $this->facebookAccessToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set realName
|
||||
*
|
||||
* @param string $realName
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function setRealName($realName)
|
||||
{
|
||||
$this->realName = $realName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get realName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->realName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set nickName
|
||||
*
|
||||
* @param string $nickName
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function setNickName($nickName)
|
||||
{
|
||||
$this->nickName = $nickName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nickName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNickName()
|
||||
{
|
||||
return $this->nickName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,20 @@ class User extends BaseUser
|
||||
|
||||
private $facebookAccessToken;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="real_name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $realName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="nick_name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $nickName;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
@@ -56,4 +70,71 @@ class User extends BaseUser
|
||||
{
|
||||
return $this->facebookId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $facebookAccessToken
|
||||
* @return User
|
||||
*/
|
||||
public function setFacebookAccessToken($facebookAccessToken)
|
||||
{
|
||||
$this->facebookAccessToken = $facebookAccessToken;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFacebookAccessToken()
|
||||
{
|
||||
return $this->facebookAccessToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set realName
|
||||
*
|
||||
* @param string $realName
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function setRealName($realName)
|
||||
{
|
||||
$this->realName = $realName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get realName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->realName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set nickName
|
||||
*
|
||||
* @param string $nickName
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function setNickName($nickName)
|
||||
{
|
||||
$this->nickName = $nickName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nickName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNickName()
|
||||
{
|
||||
return $this->nickName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user