Commit 027d805b authored by Django Janny's avatar Django Janny
Browse files

UNOTOPLYS-326 - Erreur à l'authentification lorsque j'utilise un mot de passe trop court

parent 677a4fc5
...@@ -34,7 +34,7 @@ export default class Login extends mixins(AccountMixin) { ...@@ -34,7 +34,7 @@ export default class Login extends mixins(AccountMixin) {
this.getAccountService().retrieveAccount(); this.getAccountService().retrieveAccount();
}) })
.catch(error => { .catch(error => {
if (error.response.data.detail.endsWith('not activated')) { if (error?.response?.data?.detail?.endsWith('not activated')) {
this.authenticationError = 'not.activated'; this.authenticationError = 'not.activated';
} else { } else {
this.authenticationError = 'credentials'; this.authenticationError = 'credentials';
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
:placeholder="$t('login.form.password.placeholder')" :placeholder="$t('login.form.password.placeholder')"
required="true" required="true"
@update="password = $event" @update="password = $event"
minlength="4"
/> />
</div> </div>
<div class="m-8 text-center"> <div class="m-8 text-center">
......
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