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);
}
},
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) {