diff --git a/server/api/admin.js b/server/api/admin.js index 79f8b80..c2aa95f 100644 --- a/server/api/admin.js +++ b/server/api/admin.js @@ -143,8 +143,6 @@ const API = { data = dataFilter(data, fields, ['scope', 'verified']) if (!data) throw new Error('Missing fields') - data.verified = (data.verified != null ? 1 : 0) - try { await Models.OAuth2Client.query().patchAndFetchById(id, data) await Models.OAuth2AuthorizedClient.query().delete().where('client_id', id) diff --git a/src/script/component/BanModal.vue b/src/script/component/BanModal.vue index a55a98d..8d177d1 100644 --- a/src/script/component/BanModal.vue +++ b/src/script/component/BanModal.vue @@ -2,14 +2,16 @@ modal(:show='show', @close='close') .modal-header h3 Ban user - .modal-body + .modal-body.aligned-form .message.error(v-if='error') {{ error }} input(type='hidden', name='user_id', :value='id') - label(for='reason') Reason - input#reason(type='text', name='reason', v-model='reason') - label(for='expires_at') Expires - input#expires_at(type='date', name='expires_at', v-model='expires_at') - .modal-footer.text-right + .cell + label(for='reason') Reason + input#reason(type='text', name='reason', v-model='reason') + .cell + label(for='expires_at') Expires + input#expires_at(type='date', name='expires_at', v-model='expires_at') + .modal-footer.text-align button(@click='submit') Ban button(@click='close') Cancel diff --git a/src/script/component/ClientModal.vue b/src/script/component/ClientModal.vue new file mode 100644 index 0000000..0110b9e --- /dev/null +++ b/src/script/component/ClientModal.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/script/component/OAuthClients.vue b/src/script/component/OAuthClients.vue new file mode 100644 index 0000000..4f0a376 --- /dev/null +++ b/src/script/component/OAuthClients.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/script/views/OAuth2.vue b/src/script/views/OAuth2.vue index 2620217..729290c 100644 --- a/src/script/views/OAuth2.vue +++ b/src/script/views/OAuth2.vue @@ -1,8 +1,20 @@ diff --git a/src/script/views/Users.vue b/src/script/views/Users.vue index 3b22f64..11ce729 100644 --- a/src/script/views/Users.vue +++ b/src/script/views/Users.vue @@ -10,6 +10,7 @@