Skip to content

Commit

Permalink
fix the bug that the status of email changes to unverified after clic…
Browse files Browse the repository at this point in the history
…king reset button in the user basic setting page
  • Loading branch information
mayswind committed Apr 5, 2024
1 parent 2a2cb3a commit 4d065bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/desktop/user/settings/tabs/UserBasicSettingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ export default {
Promise.all(promises).then(responses => {
const profile = responses[1];
self.setCurrentUserProfile(profile);
self.emailVerified = profile.emailVerified;
self.loading = false;
}).catch(error => {
self.oldProfile.nickname = '';
Expand Down Expand Up @@ -420,6 +421,7 @@ export default {
if (response.user) {
self.setCurrentUserProfile(response.user);
self.emailVerified = response.user.emailVerified;
const localeDefaultSettings = self.$locale.setLanguage(response.user.language);
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
Expand Down Expand Up @@ -457,8 +459,6 @@ export default {
return getNameByKeyValue(src, value, keyField, nameField, defaultName);
},
setCurrentUserProfile(profile) {
this.emailVerified = profile.emailVerified;
this.oldProfile.username = profile.username;
this.oldProfile.email = profile.email;
this.oldProfile.nickname = profile.nickname;
Expand Down

0 comments on commit 4d065bc

Please sign in to comment.