mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 22:30:05 +01:00
Fix #141 : Convert InputField value to string
This commit is contained in:
parent
312ad46fd6
commit
67068b5ccd
18
resources/js/mixins.js
vendored
18
resources/js/mixins.js
vendored
@ -20,11 +20,11 @@ Vue.mixin({
|
||||
else {
|
||||
await this.axios.get('/user/logout')
|
||||
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) {
|
||||
this.$notify({ clean: true })
|
||||
this.$router.push({ name: 'accounts' })
|
||||
@ -41,7 +41,7 @@ Vue.mixin({
|
||||
openInBrowser(uri) {
|
||||
const a = document.createElement('a')
|
||||
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)
|
||||
.forEach((key) => {
|
||||
if( credentials.response[key] === null )
|
||||
{
|
||||
if (credentials.response[key] === null) {
|
||||
parseCredentials.response[key] = null
|
||||
}
|
||||
else {
|
||||
@ -103,7 +102,7 @@ Vue.mixin({
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return parseCredentials;
|
||||
},
|
||||
|
||||
@ -120,7 +119,7 @@ Vue.mixin({
|
||||
(c) => c.charCodeAt(0)
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Encodes an array of bytes to a BASE64 URL string
|
||||
*
|
||||
@ -154,7 +153,7 @@ Vue.mixin({
|
||||
|
||||
return window.atob(input);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Encodes an array of bytes to a BASE64 URL string
|
||||
*
|
||||
@ -163,6 +162,7 @@ Vue.mixin({
|
||||
*/
|
||||
inputId(fieldType, fieldName) {
|
||||
let prefix
|
||||
fieldName = fieldName.toString()
|
||||
|
||||
switch (fieldType) {
|
||||
case 'button':
|
||||
|
Loading…
Reference in New Issue
Block a user