diff options
Diffstat (limited to 'core/src/mixins/auth.js')
-rw-r--r-- | core/src/mixins/auth.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/mixins/auth.js b/core/src/mixins/auth.js new file mode 100644 index 00000000000..f5b9365516e --- /dev/null +++ b/core/src/mixins/auth.js @@ -0,0 +1,19 @@ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +export default { + + computed: { + userNameInputLengthIs255() { + return this.user.length >= 255 + }, + userInputHelperText() { + if (this.userNameInputLengthIs255) { + return t('core', 'Email length is at max (255)') + } + return undefined + }, + }, +} |