mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(auth): alert on successful addLocal
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user