fix(auth): alert on successful addLocal

This commit is contained in:
Sabe Jones
2018-10-03 14:30:35 -05:00
parent 45a757b589
commit 1c39fae127

View File

@@ -467,8 +467,9 @@ export default {
alert(e.message); alert(e.message);
} }
}, },
addLocalAuth () { async addLocalAuth () {
axios.post('/api/v4/user/auth/local/register', this.localAuth, 'addedLocalAuth'); await axios.post('/api/v4/user/auth/local/register', this.localAuth);
alert(this.$t('addedLocalAuth'));
}, },
restoreEmptyUsername () { restoreEmptyUsername () {
if (this.usernameUpdates.username.length < 1) { if (this.usernameUpdates.username.length < 1) {