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);
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user