Change nonce length to 5 in frontend too

- Fix a design issue by replacing 'registration-form' class again to 'login-form'.
This commit is contained in:
Wolfgang Huß 2021-03-02 10:03:39 +01:00
parent b2ab320270
commit 993f980c46
5 changed files with 10 additions and 14 deletions

View File

@ -296,12 +296,6 @@ export default {
},
})
this.response = 'success'
// Wolle setTimeout(() => {
// this.$emit('userCreated', {
// email,
// password,
// })
// }, 3000)
} catch (err) {
this.response = 'error'
}

View File

@ -41,7 +41,8 @@ export default {
formSchema: {
inviteCode: {
type: 'string',
// Wolle min: 6,
// add again if the input has a validation without focus and typing
// min: 6,
// max: 6,
required: true,
message: this.$t('components.enter-invite.form.validations.length'),

View File

@ -40,8 +40,9 @@ export default {
formSchema: {
nonce: {
type: 'string',
// Wolle min: 6,
// max: 6,
// add again if the input has a validation without focus and typing
// min: 5,
// max: 5,
required: true,
message: this.$t('components.enter-nonce.form.validations.length'),
},
@ -64,7 +65,7 @@ export default {
},
computed: {
validInput() {
return this.formData.nonce.length === 6
return this.formData.nonce.length === 5
},
},
methods: {

View File

@ -55,7 +55,7 @@ storiesOf('RegistrationSlider', module)
inviteCode: 'IN1T6Y',
email: 'wolle.huss@pjannto.com',
emailSend: false,
nonce: 'NTRSCZ',
nonce: 'NTRSC',
name: 'Wolle',
password: 'Hello',
passwordConfirmation: 'Hello',
@ -89,7 +89,7 @@ storiesOf('RegistrationSlider', module)
inviteCode: null,
email: 'wolle.huss@pjannto.com',
emailSend: false,
nonce: 'NTRSCZ',
nonce: 'NTRSC',
name: 'Wolle',
password: 'Hello',
passwordConfirmation: 'Hello',
@ -141,7 +141,7 @@ storiesOf('RegistrationSlider', module)
inviteCode: null,
email: 'wolle.huss@pjannto.com',
emailSend: true,
nonce: 'NTRSCZ',
nonce: 'NTRSC',
name: 'Wolle',
password: 'Hello',
passwordConfirmation: 'Hello',

View File

@ -1,5 +1,5 @@
<template>
<section class="registration-form">
<section class="login-form">
<base-card>
<template #imageColumn>
<a :href="links.ORGANIZATION" :title="$t('login.moreInfo', metadata)" target="_blank">