From 1c39fae127ef5126e0b9b40b7604b56f2007cf34 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 3 Oct 2018 14:30:35 -0500 Subject: [PATCH] fix(auth): alert on successful addLocal --- website/client/components/settings/site.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/client/components/settings/site.vue b/website/client/components/settings/site.vue index e00e359936..bad8815335 100644 --- a/website/client/components/settings/site.vue +++ b/website/client/components/settings/site.vue @@ -467,8 +467,9 @@ export default { alert(e.message); } }, - addLocalAuth () { - axios.post('/api/v4/user/auth/local/register', this.localAuth, 'addedLocalAuth'); + async addLocalAuth () { + await axios.post('/api/v4/user/auth/local/register', this.localAuth); + alert(this.$t('addedLocalAuth')); }, restoreEmptyUsername () { if (this.usernameUpdates.username.length < 1) {