6
0
Kaynağa Gözat

fixed some authentication methods; removed some log outputs

Dimitri Korsch 3 yıl önce
ebeveyn
işleme
b1c608dae3
2 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 1
      webui/src/App.vue
  2. 0 2
      webui/src/main.js

+ 1 - 1
webui/src/App.vue

@@ -123,7 +123,7 @@ export default {
   methods: {
     login() {
       this.loginButtonDisabled = true;
-      this.$root.authenticate(this.userName, this.passwordLogin);
+      this.$root.authenticate(this.userName.toLowerCase(), this.passwordLogin);
       this.loginButtonDisabled = false;
     },
     resize: function () {

+ 0 - 2
webui/src/main.js

@@ -89,7 +89,6 @@ new Vue({
                     const authHeaders = new Headers();
                     authHeaders.set('Authorization',
                       'Basic ' + window.btoa(this.username + ":" + this.password));
-                    console.log(authHeaders.get("Authorization"));
                     return authHeaders;
                 },
                 url: function (name) {
@@ -146,7 +145,6 @@ new Vue({
                     return false;
                   }
 
-                  console.log("Sock:auth", this.username, this.password)
                   this.get('/authenticate')
                     .then((response) => {
                       this.authenticated = (response.status === 200);