fix: Disable email confirmation does not work with invited users

This commit is contained in:
Ahmed Bouhuolia
2024-06-10 15:59:33 +02:00
parent 031ccc4a0b
commit d1caa5c5ce
3 changed files with 21 additions and 2 deletions

View File

@@ -90,6 +90,20 @@ export default class SystemUser extends SystemModel {
};
}
/**
* Model modifiers.
*/
static get modifiers() {
return {
/**
* Filters the invite accepted users.
*/
inviteAccepted(query) {
query.whereNotNull('invite_accepted_at');
},
};
}
/**
* Verify the password of the user.
* @param {String} password - The given password.