[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)
}
},