diff --git a/app/locales/locales.js b/app/locales/locales.js
index 5b723ea..0e7cc01 100644
--- a/app/locales/locales.js
+++ b/app/locales/locales.js
@@ -2,8 +2,8 @@ const locales = {
"en": {
"lang": "en",
"header": {
- "Email":"Email",
- "Password":"Password",
+ "Email": "Email",
+ "Password": "Password",
"Sign_in": "Sign_in",
"Register": "Register",
"title": "Next generation
password manager",
@@ -89,8 +89,8 @@ const locales = {
"fr": {
"lang": "fr",
"header": {
- "Email":"Email",
- "Password":"Mot de passe",
+ "Email": "Email",
+ "Password": "Mot de passe",
"Sign_in": "Connexion",
"Register": "S'enregistrer",
"title": "Gestionnaire de mot de passe nouvelle génération",
@@ -170,6 +170,9 @@ const locales = {
"create_account": "Créez un compte",
"welcome": "Connexion réussie, bienvenue sur LessPass",
"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
en mode deconnecté"
}
}
};
diff --git a/app/main.js b/app/main.js
index 7fa9af7..af95999 100644
--- a/app/main.js
+++ b/app/main.js
@@ -36,10 +36,6 @@ router.map({
}
});
-router.beforeEach(function () {
- window.scrollTo(0, 0)
-});
-
router.redirect({
'*': '/'
});
diff --git a/app/services/auth.js b/app/services/auth.js
index 4f4e6d1..02b58fa 100644
--- a/app/services/auth.js
+++ b/app/services/auth.js
@@ -27,11 +27,10 @@ export default {
var self = this;
context.$http.post('/api/users/', user).then(
function (response) {
- localStorage.setItem('token', response.data.token);
- router.go('/');
+ logging.warning(this.$t('register.beta'));
},
function (error) {
- context.error = true;
+ logging.warning(this.$t('register.beta'));
}
);
},