ソースを参照

refactor: add checked property to component data

pull/604/head
Andrea PIERRÉ 3年前
コミット
fa145da93e
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 78A39B4A078E6C06
2個のファイルの変更5行の追加2行の削除
  1. +3
    -1
      packages/lesspass-pure/src/components/MasterPassword.vue
  2. +2
    -1
      packages/lesspass-pure/src/views/Login.vue

+ 3
- 1
packages/lesspass-pure/src/components/MasterPassword.vue ファイルの表示

@@ -65,6 +65,7 @@
class="form-check-input"
type="checkbox"
id="checkPlainPassword"
v-model="checkPlainPassword"
/>
<label class="form-check-label" for="checkPlainPassword">{{
$t("Use plain password")
@@ -98,7 +99,8 @@ export default {
icon3: "",
color1: "",
color2: "",
color3: ""
color3: "",
checkPlainPassword: false
};
},
methods: {


+ 2
- 1
packages/lesspass-pure/src/views/Login.vue ファイルの表示

@@ -116,10 +116,11 @@ export default {
signIn() {
if (this.formIsValid()) {
const baseURL = this.baseURL;
let checkPlainPassword = this.$children[0].checkPlainPassword
this.$store.dispatch("setBaseURL", { baseURL });
encryptPassword(this.email, this.password)
.then(encryptedPassword => {
let pass = document.getElementById("checkPlainPassword").checked ? this.password : encryptedPassword;
let pass = checkPlainPassword ? this.password : encryptedPassword;
User.login({ email: this.email, password: pass })
.then(response => {
this.$store.dispatch("login", response.data);


読み込み中…
キャンセル
保存