mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Fix #141 : Convert InputField value to string
This commit is contained in:
parent
312ad46fd6
commit
67068b5ccd
10
resources/js/mixins.js
vendored
10
resources/js/mixins.js
vendored
@ -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 {
|
||||||
@ -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