@@ -17,9 +17,6 @@ | |||||
<div class="bg-inverse p-a-1"> | <div class="bg-inverse p-a-1"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
<div class="alert alert-danger" v-if="error"> | |||||
<p>{{{$t('header.credentials_invalids')}}}</p> | |||||
</div> | |||||
<form class="form-inline pull-md-right"> | <form class="form-inline pull-md-right"> | ||||
<div class="form-group form"> | <div class="form-group form"> | ||||
<label class="sr-only" for="email">{{$t('header.Email')}}</label> | <label class="sr-only" for="email">{{$t('header.Email')}}</label> | ||||
@@ -1,5 +1,5 @@ | |||||
<template> | <template> | ||||
<div class="container m-t-3"> | |||||
<div id="password-generator" class="container m-t-3"> | |||||
<form> | <form> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<div class="col-lg-3 m-b-1"> | <div class="col-lg-3 m-b-1"> | ||||
@@ -2,8 +2,8 @@ const locales = { | |||||
"en": { | "en": { | ||||
"lang": "en", | "lang": "en", | ||||
"header": { | "header": { | ||||
"Email":"Email", | |||||
"Password":"Password", | |||||
"Email": "Email", | |||||
"Password": "Password", | |||||
"Sign_in": "Sign_in", | "Sign_in": "Sign_in", | ||||
"Register": "Register", | "Register": "Register", | ||||
"title": "Next generation<br>password manager", | "title": "Next generation<br>password manager", | ||||
@@ -89,8 +89,8 @@ const locales = { | |||||
"fr": { | "fr": { | ||||
"lang": "fr", | "lang": "fr", | ||||
"header": { | "header": { | ||||
"Email":"Email", | |||||
"Password":"Mot de passe", | |||||
"Email": "Email", | |||||
"Password": "Mot de passe", | |||||
"Sign_in": "Connexion", | "Sign_in": "Connexion", | ||||
"Register": "S'enregistrer", | "Register": "S'enregistrer", | ||||
"title": "Gestionnaire de mot de passe nouvelle génération", | "title": "Gestionnaire de mot de passe nouvelle génération", | ||||
@@ -170,6 +170,9 @@ const locales = { | |||||
"create_account": "Créez un compte", | "create_account": "Créez un compte", | ||||
"welcome": "Connexion réussie, bienvenue sur LessPass", | "welcome": "Connexion réussie, bienvenue sur LessPass", | ||||
"credentials_invalids": "L' adresse e-mail et/ou mot de passe sont invalides" | "credentials_invalids": "L' adresse e-mail et/ou mot de passe sont invalides" | ||||
}, | |||||
"register": { | |||||
"beta" : "LessPass Application est pour l'instant en version beta. Vous pouvez utilisez LessPass <a href='#password-generator'><b>en mode deconnecté</b></a>" | |||||
} | } | ||||
} | } | ||||
}; | }; | ||||
@@ -36,10 +36,6 @@ router.map({ | |||||
} | } | ||||
}); | }); | ||||
router.beforeEach(function () { | |||||
window.scrollTo(0, 0) | |||||
}); | |||||
router.redirect({ | router.redirect({ | ||||
'*': '/' | '*': '/' | ||||
}); | }); | ||||
@@ -27,11 +27,10 @@ export default { | |||||
var self = this; | var self = this; | ||||
context.$http.post('/api/users/', user).then( | context.$http.post('/api/users/', user).then( | ||||
function (response) { | function (response) { | ||||
localStorage.setItem('token', response.data.token); | |||||
router.go('/'); | |||||
logging.warning(this.$t('register.beta')); | |||||
}, | }, | ||||
function (error) { | function (error) { | ||||
context.error = true; | |||||
logging.warning(this.$t('register.beta')); | |||||
} | } | ||||
); | ); | ||||
}, | }, | ||||