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) {
this.getAccountService().retrieveAccount();
})
.catch(error => {
if (error.response.data.detail.endsWith('not activated')) {
if (error?.response?.data?.detail?.endsWith('not activated')) {
this.authenticationError = 'not.activated';
} else {
this.authenticationError = 'credentials';
......
......@@ -31,6 +31,7 @@
:placeholder="$t('login.form.password.placeholder')"
required="true"
@update="password = $event"
minlength="4"
/>
</div>
<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