mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
fix the bug that the status of email changes to unverified after clicking reset button in the user basic setting page
This commit is contained in:
@@ -387,6 +387,7 @@ export default {
|
|||||||
Promise.all(promises).then(responses => {
|
Promise.all(promises).then(responses => {
|
||||||
const profile = responses[1];
|
const profile = responses[1];
|
||||||
self.setCurrentUserProfile(profile);
|
self.setCurrentUserProfile(profile);
|
||||||
|
self.emailVerified = profile.emailVerified;
|
||||||
self.loading = false;
|
self.loading = false;
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
self.oldProfile.nickname = '';
|
self.oldProfile.nickname = '';
|
||||||
@@ -420,6 +421,7 @@ export default {
|
|||||||
|
|
||||||
if (response.user) {
|
if (response.user) {
|
||||||
self.setCurrentUserProfile(response.user);
|
self.setCurrentUserProfile(response.user);
|
||||||
|
self.emailVerified = response.user.emailVerified;
|
||||||
|
|
||||||
const localeDefaultSettings = self.$locale.setLanguage(response.user.language);
|
const localeDefaultSettings = self.$locale.setLanguage(response.user.language);
|
||||||
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
|
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
|
||||||
@@ -457,8 +459,6 @@ export default {
|
|||||||
return getNameByKeyValue(src, value, keyField, nameField, defaultName);
|
return getNameByKeyValue(src, value, keyField, nameField, defaultName);
|
||||||
},
|
},
|
||||||
setCurrentUserProfile(profile) {
|
setCurrentUserProfile(profile) {
|
||||||
this.emailVerified = profile.emailVerified;
|
|
||||||
|
|
||||||
this.oldProfile.username = profile.username;
|
this.oldProfile.username = profile.username;
|
||||||
this.oldProfile.email = profile.email;
|
this.oldProfile.email = profile.email;
|
||||||
this.oldProfile.nickname = profile.nickname;
|
this.oldProfile.nickname = profile.nickname;
|
||||||
|
|||||||
Reference in New Issue
Block a user