mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Fix username changing only on frontend
This commit is contained in:
parent
d7f35991df
commit
1873db9006
2 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,7 @@ export default {
|
|||
updateUsername() {
|
||||
this.$axios.put("/users/" + this.$currentSession() + "/username", { name: this.newUsername })
|
||||
.then(response => {
|
||||
if (response == null) return; // the interceptors returns null if something goes bad
|
||||
this.show_username_form = false
|
||||
this.$emit('updateInfo')
|
||||
this.username = this.newUsername
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue