[web-src] Replace verification request with authorize output request

This commit is contained in:
chme 2020-06-11 11:56:54 +02:00
parent 2019e88bb3
commit ade654f96f
2 changed files with 3 additions and 7 deletions

View File

@ -49,7 +49,7 @@
</label>
</div>
</div>
<form @submit.prevent="kickoff_verification" v-if="output.needs_auth_key" class="fd-has-margin-bottom">
<form @submit.prevent="kickoff_verification(output.id)" v-if="output.needs_auth_key" class="fd-has-margin-bottom">
<div class="field is-grouped">
<div class="control">
<input class="input" type="text" placeholder="Enter verification code" v-model="verification_req.pin">
@ -100,8 +100,8 @@ export default {
webapi.output_toggle(outputId)
},
kickoff_verification () {
webapi.verification_kickoff(this.verification_req)
kickoff_verification (outputId) {
webapi.output_update(outputId, this.verification_req)
}
},

View File

@ -372,10 +372,6 @@ export default {
return axios.post('/api/pairing', pairingReq)
},
verification_kickoff (verificationReq) {
return axios.post('/api/verification', verificationReq)
},
artwork_url_append_size_params (artworkUrl, maxwidth = 600, maxheight = 600) {
if (artworkUrl && artworkUrl.startsWith('/')) {
if (artworkUrl.includes('?')) {