Skip to content

Commit

Permalink
fix(auth): alert on successful addLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Oct 3, 2018
1 parent 45a757b commit 1c39fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/client/components/settings/site.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c39fae

Please sign in to comment.