mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
less stubs, more really answers (#641)
This commit is contained in:
parent
71b9c57030
commit
5bae9d224d
1 changed files with 3 additions and 5 deletions
|
@ -13,8 +13,8 @@ final class Account extends VKAPIRequestHandler
|
|||
"last_name" => $this->getUser()->getLastName(),
|
||||
"home_town" => $this->getUser()->getHometown(),
|
||||
"status" => $this->getUser()->getStatus(),
|
||||
"bdate" => "1.1.1970", # TODO
|
||||
"bdate_visibility" => 0, # TODO
|
||||
"bdate" => $this->getUser()->getBirthday()->format('%e.%m.%Y'),
|
||||
"bdate_visibility" => $this->getUser()->getBirthdayPrivacy(),
|
||||
"phone" => "+420 ** *** 228", # TODO
|
||||
"relation" => $this->getUser()->getMaritalStatus(),
|
||||
"sex" => $this->getUser()->isFemale() ? 1 : 2
|
||||
|
@ -25,10 +25,8 @@ final class Account extends VKAPIRequestHandler
|
|||
{
|
||||
$this->requireUser();
|
||||
|
||||
# Цiй метод є заглушка
|
||||
|
||||
return (object) [
|
||||
"2fa_required" => 0,
|
||||
"2fa_required" => $this->getUser()->is2faEnabled() ? 1 : 0,
|
||||
"country" => "CZ", # TODO
|
||||
"eu_user" => false, # TODO
|
||||
"https_required" => 1,
|
||||
|
|
Loading…
Reference in a new issue