Pārlūkot izejas kodu

implement register button with warning message

pull/44/head
Guillaume Vincent pirms 8 gadiem
vecāks
revīzija
f77cc6f707
5 mainītis faili ar 10 papildinājumiem un 15 dzēšanām
  1. +0
    -3
      app/components/header.vue
  2. +1
    -1
      app/components/password-generator.vue
  3. +7
    -4
      app/locales/locales.js
  4. +0
    -4
      app/main.js
  5. +2
    -3
      app/services/auth.js

+ 0
- 3
app/components/header.vue Parādīt failu

@@ -17,9 +17,6 @@
<div class="bg-inverse p-a-1">
<div class="container">
<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">
<div class="form-group form">
<label class="sr-only" for="email">{{$t('header.Email')}}</label>


+ 1
- 1
app/components/password-generator.vue Parādīt failu

@@ -1,5 +1,5 @@
<template>
<div class="container m-t-3">
<div id="password-generator" class="container m-t-3">
<form>
<div class="form-group row">
<div class="col-lg-3 m-b-1">


+ 7
- 4
app/locales/locales.js Parādīt failu

@@ -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<br>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 <a href='#password-generator'><b>en mode deconnecté</b></a>"
}
}
};


+ 0
- 4
app/main.js Parādīt failu

@@ -36,10 +36,6 @@ router.map({
}
});

router.beforeEach(function () {
window.scrollTo(0, 0)
});

router.redirect({
'*': '/'
});


+ 2
- 3
app/services/auth.js Parādīt failu

@@ -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'));
}
);
},


Notiek ielāde…
Atcelt
Saglabāt