From 29a718116ab6dda2e159f3c022c53a8087532363 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 21 Apr 2021 15:24:16 +0200 Subject: [PATCH 1/2] removed rules for password on login --- frontend/src/views/Pages/Login.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index 8391ba907..a9c5f0f09 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -38,7 +38,6 @@ alternative class="mb-3" name="Password" - :rules="{ required: true, min: 6 }" prepend-icon="ni ni-lock-circle-open" type="password" :placeholder="$t('form.password')" From f2de1f6c38751a7312804bdf16ef7ae3eee03812 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 21 Apr 2021 15:28:15 +0200 Subject: [PATCH 2/2] remove test for password rules on login --- frontend/src/views/Pages/Login.spec.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/frontend/src/views/Pages/Login.spec.js b/frontend/src/views/Pages/Login.spec.js index 651cc22f0..f0bb1b3b8 100644 --- a/frontend/src/views/Pages/Login.spec.js +++ b/frontend/src/views/Pages/Login.spec.js @@ -93,14 +93,6 @@ describe('Login', () => { 'The Email field must be a valid email', ) }) - - it('shows a warning when password is too short', async () => { - wrapper.find('input[placeholder="form.password"]').setValue('1234') - await flushPromises() - await expect(wrapper.find('.invalid-feedback').text()).toEqual( - 'The Password field must be at least 6 characters', - ) - }) }) // to do: test submit button