mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Registration fixed
This commit is contained in:
parent
53f3e8b4e4
commit
42fbd78dd4
4 changed files with 29 additions and 3 deletions
|
@ -91,7 +91,10 @@ final class AuthPresenter extends OpenVKPresenter
|
|||
$user = new User;
|
||||
$user->setFirst_Name($this->postParam("first_name"));
|
||||
$user->setLast_Name($this->postParam("last_name"));
|
||||
$user->setSex((int)($this->postParam("sex") === "female"));
|
||||
|
||||
if ($this->postParam("sex") != "null")
|
||||
$user->setGender((int)($this->postParam("sex") === "female"));
|
||||
|
||||
$user->setEmail($this->postParam("email"));
|
||||
$user->setSince(date("Y-m-d H:i:s"));
|
||||
$user->setRegistering_Ip(CONNECTING_IP);
|
||||
|
|
|
@ -49,8 +49,9 @@
|
|||
<td>
|
||||
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
||||
<select name="sex" required>
|
||||
<option n:attr="selected => !$femalePreferred" value="male">{_male}</option>
|
||||
<option n:attr="selected => $femalePreferred" value="female">{_female}</option>
|
||||
<option selected value="null">{_not_specified}</option>
|
||||
<option value="male">{_male}</option>
|
||||
<option value="female">{_female}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1151,3 +1151,14 @@
|
|||
"url_is_banned_default_reason" = "The link you are trying to open may lead you to a site that was created for the purpose of deceiving users with the intention of gaining profit.";
|
||||
"url_is_banned_title" = "Link to a suspicious site";
|
||||
"url_is_banned_proceed" = "Follow the link";
|
||||
|
||||
/* Maintenance */
|
||||
|
||||
"global_maintenance" = "Undergoing maintenance";
|
||||
"section_maintenance" = "The section is not available";
|
||||
"undergoing_global_maintenance" = "Unfortunately, the instance is now closed for technical work. We are already working on troubleshooting. Please try to come back later.";
|
||||
"undergoing_section_maintenance" = "Unfortunately, the <b>$1</b> section is temporarily unavailable. We are already working on troubleshooting. Please try to come back later.";
|
||||
|
||||
"topics" = "Topics";
|
||||
|
||||
"not_specified" = "Not specified";
|
||||
|
|
|
@ -1212,3 +1212,14 @@
|
|||
"url_is_banned_default_reason" = "Ссылка, по которой вы попытались перейти, может вести на сайт, который был создан с целью обмана пользователей и получения за счёт этого прибыли.";
|
||||
"url_is_banned_title" = "Ссылка на подозрительный сайт";
|
||||
"url_is_banned_proceed" = "Перейти по ссылке";
|
||||
|
||||
/* Maintenance */
|
||||
|
||||
"global_maintenance" = "Технические работы";
|
||||
"section_maintenance" = "Раздел недоступен";
|
||||
"undergoing_global_maintenance" = "К сожалению, сейчас инстанс закрыт на технические работы. Мы уже работаем над устранением неисправностей. Пожалуйста, попробуйте зайти позже.";
|
||||
"undergoing_section_maintenance" = "К сожалению, раздел <b>$1</b> временно недоступен. Мы уже работаем над устранением неисправностей. Пожалуйста, попробуйте зайти позже.";
|
||||
|
||||
"topics" = "Темы";
|
||||
|
||||
"not_specified" = "Не указан";
|
||||
|
|
Loading…
Reference in a new issue