Fix redirctUri

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-06-19 11:42:35 +02:00
parent 1ff3f57898
commit f520a6bceb
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@
<h3>{{ t('oauth2', 'Add client') }}</h3> <h3>{{ t('oauth2', 'Add client') }}</h3>
<form @submit.prevent="addClient"> <form @submit.prevent="addClient">
<input type="text" id="name" name="name" :placeholder="t('oauth2', 'Name')" v-model="newClient.name"> <input type="text" id="name" name="name" :placeholder="t('oauth2', 'Name')" v-model="newClient.name">
<input type="url" id="redirectUri" name="redirectUri" :placeholder="t('oauth2', 'Redirection URI')" v-model="newClient.redirctUri"> <input type="url" id="redirectUri" name="redirectUri" :placeholder="t('oauth2', 'Redirection URI')" v-model="newClient.redirectUri">
<input type="submit" class="button" :value="t('oauth2', 'Add')"> <input type="submit" class="button" :value="t('oauth2', 'Add')">
</form> </form>
</div> </div>
@ -66,7 +66,7 @@ export default {
clients: [], clients: [],
newClient: { newClient: {
name: '', name: '',
redirctUri: '' redirectUri: ''
} }
}; };
}, },
@ -97,14 +97,14 @@ export default {
OC.generateUrl('apps/oauth2/clients'), OC.generateUrl('apps/oauth2/clients'),
{ {
name: this.newClient.name, name: this.newClient.name,
redirectUri: this.newClient.redirctUri redirectUri: this.newClient.redirectUri
}, },
tokenHeaders) tokenHeaders)
.then((response) => { .then((response) => {
this.clients.push(response.data) this.clients.push(response.data)
this.newClient.name = ''; this.newClient.name = '';
this.newClient.redirctUri = ''; this.newClient.redirectUri = '';
} }
); );
} }