Add / change duplicate result to registration dialog #2067
Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
324bdda969
Коммит
048d30e4fd
|
@ -354,7 +354,6 @@ class ShareService {
|
|||
}
|
||||
|
||||
$this->systemService->validatePublicUsername($userName, $token);
|
||||
// $this->systemService->validateEmailAddress($emailAddress, true);
|
||||
$this->systemService->validateEmailAddress($emailAddress, $poll->getPublicPollEmail() !== 'mandatory');
|
||||
|
||||
if ($this->share->getType() === Share::TYPE_PUBLIC) {
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
@submit="submitRegistration" />
|
||||
</div>
|
||||
|
||||
<div :class="['status-message', userNameCheck.status]">
|
||||
{{ userNameCheck.result }}
|
||||
</div>
|
||||
|
||||
<div v-if="poll.publicPollEmail !== 'disabled'" class="section__email">
|
||||
<h3 v-if="poll.publicPollEmail === 'mandatory'">
|
||||
{{ t("polls", "Your email address is required. After the registration your personal link to the poll will be sent to this address.") }}
|
||||
|
@ -141,14 +145,14 @@ export default {
|
|||
}
|
||||
if (this.userName.length === 0) {
|
||||
return {
|
||||
result: t('polls', 'Enter a name to participate.'),
|
||||
result: t('polls', ' '),
|
||||
status: 'empty',
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.isValidName) {
|
||||
return {
|
||||
result: t('polls', 'Invalid name'),
|
||||
result: t('polls', '{username} is invalid or reserved.', { username: this.userName }),
|
||||
status: 'error',
|
||||
}
|
||||
}
|
||||
|
@ -319,7 +323,12 @@ export default {
|
|||
|
||||
.description {
|
||||
hyphens: auto;
|
||||
border-top: 1px solid var(--color-border)
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.status-message {
|
||||
hyphens: auto;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 688px) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче