Commit 333e5073 authored by Tino Goratsch's avatar Tino Goratsch

minor fixes

parent 5c848d7e
...@@ -178,7 +178,7 @@ class Validator extends Core\Validator\AbstractValidator ...@@ -178,7 +178,7 @@ class Validator extends Core\Validator\AbstractValidator
!empty($formData[$passwordConfirmationField]) && !empty($formData[$passwordConfirmationField]) &&
$formData[$passwordField] !== $formData[$passwordConfirmationField] $formData[$passwordField] !== $formData[$passwordConfirmationField]
) { ) {
$this->errors[$passwordField] = $this->lang->t('users', 'type_in_pwd'); $this->errors[str_replace('_', '-', $passwordField)] = $this->lang->t('users', 'type_in_pwd');
} }
} }
...@@ -193,7 +193,7 @@ class Validator extends Core\Validator\AbstractValidator ...@@ -193,7 +193,7 @@ class Validator extends Core\Validator\AbstractValidator
empty($formData[$passwordConfirmationField]) || empty($formData[$passwordConfirmationField]) ||
$formData[$passwordField] !== $formData[$passwordConfirmationField] $formData[$passwordField] !== $formData[$passwordConfirmationField]
) { ) {
$this->errors[$passwordField] = $this->lang->t('users', 'type_in_pwd'); $this->errors[str_replace('_', '-', $passwordField)] = $this->lang->t('users', 'type_in_pwd');
} }
} }
...@@ -237,7 +237,7 @@ class Validator extends Core\Validator\AbstractValidator ...@@ -237,7 +237,7 @@ class Validator extends Core\Validator\AbstractValidator
$this->errors = []; $this->errors = [];
if (empty($formData['nickname'])) { if (empty($formData['nickname'])) {
$this->errors['nnickname'] = $this->lang->t('system', 'name_to_short'); $this->errors['nickname'] = $this->lang->t('system', 'name_to_short');
} }
if ($this->userModel->resultExistsByUserName($formData['nickname'], $this->auth->getUserId()) === true) { if ($this->userModel->resultExistsByUserName($formData['nickname'], $this->auth->getUserId()) === true) {
$this->errors['nickname'] = $this->lang->t('users', 'user_name_already_exists'); $this->errors['nickname'] = $this->lang->t('users', 'user_name_already_exists');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment