mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-13 03:58:47 +02:00
Fix #141 : Convert InputField value to string
This commit is contained in:
parent
312ad46fd6
commit
67068b5ccd
@ -20,11 +20,11 @@ Vue.mixin({
|
|||||||
else {
|
else {
|
||||||
await this.axios.get('/user/logout')
|
await this.axios.get('/user/logout')
|
||||||
this.$storage.clear()
|
this.$storage.clear()
|
||||||
this.$router.push({ name: 'login', params: {forceRefresh: true} })
|
this.$router.push({ name: 'login', params: { forceRefresh: true } })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
exitSettings: function(event) {
|
exitSettings: function (event) {
|
||||||
if (event) {
|
if (event) {
|
||||||
this.$notify({ clean: true })
|
this.$notify({ clean: true })
|
||||||
this.$router.push({ name: 'accounts' })
|
this.$router.push({ name: 'accounts' })
|
||||||
@ -41,7 +41,7 @@ Vue.mixin({
|
|||||||
openInBrowser(uri) {
|
openInBrowser(uri) {
|
||||||
const a = document.createElement('a')
|
const a = document.createElement('a')
|
||||||
a.setAttribute('href', uri)
|
a.setAttribute('href', uri)
|
||||||
a.dispatchEvent(new MouseEvent("click", {'view': window, 'bubbles': true, 'cancelable': true}))
|
a.dispatchEvent(new MouseEvent("click", { 'view': window, 'bubbles': true, 'cancelable': true }))
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,8 +93,7 @@ Vue.mixin({
|
|||||||
]
|
]
|
||||||
.filter((key) => credentials.response[key] !== undefined)
|
.filter((key) => credentials.response[key] !== undefined)
|
||||||
.forEach((key) => {
|
.forEach((key) => {
|
||||||
if( credentials.response[key] === null )
|
if (credentials.response[key] === null) {
|
||||||
{
|
|
||||||
parseCredentials.response[key] = null
|
parseCredentials.response[key] = null
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -103,7 +102,7 @@ Vue.mixin({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return parseCredentials;
|
return parseCredentials;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -120,7 +119,7 @@ Vue.mixin({
|
|||||||
(c) => c.charCodeAt(0)
|
(c) => c.charCodeAt(0)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes an array of bytes to a BASE64 URL string
|
* Encodes an array of bytes to a BASE64 URL string
|
||||||
*
|
*
|
||||||
@ -154,7 +153,7 @@ Vue.mixin({
|
|||||||
|
|
||||||
return window.atob(input);
|
return window.atob(input);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes an array of bytes to a BASE64 URL string
|
* Encodes an array of bytes to a BASE64 URL string
|
||||||
*
|
*
|
||||||
@ -163,6 +162,7 @@ Vue.mixin({
|
|||||||
*/
|
*/
|
||||||
inputId(fieldType, fieldName) {
|
inputId(fieldType, fieldName) {
|
||||||
let prefix
|
let prefix
|
||||||
|
fieldName = fieldName.toString()
|
||||||
|
|
||||||
switch (fieldType) {
|
switch (fieldType) {
|
||||||
case 'button':
|
case 'button':
|
||||||
|
Loading…
Reference in New Issue
Block a user