commit 504d24c492b38f58bd0d27feaf46b0377929f156
parent d42283eaecd029884c6650cc39e7bc72813774b1
Author: Mark Hammond <mhammond@skippinet.com.au>
Date: Thu, 20 Nov 2025 20:13:54 +0000
Bug 2001431 - ensure a Firefox Account verified state is set correctly after signin. r=skhamis
Differential Revision: https://phabricator.services.mozilla.com/D273476
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/services/fxaccounts/FxAccounts.sys.mjs b/services/fxaccounts/FxAccounts.sys.mjs
@@ -1321,6 +1321,12 @@ FxAccountsInternal.prototype = {
* Sets the user to be verified in the account state,
*/
async setUserVerified() {
+ await this.withCurrentAccountState(async currentState => {
+ const userData = await currentState.getUserAccountData();
+ if (!userData.verified) {
+ await currentState.updateUserAccountData({ verified: true });
+ }
+ });
await this.notifyObservers(ONVERIFIED_NOTIFICATION);
},