refactor: remove "password" in comments

This commit is contained in:
Barış Soner Uşaklı
2024-12-09 14:40:49 -05:00
parent e532dcb46c
commit fe811537e9
8 changed files with 5 additions and 16 deletions

View File

@@ -82,7 +82,6 @@ module.exports = function (User) {
if (!fields.length) {
fields = results.whitelist;
} else {
// Never allow password retrieval via this method
fields = fields.filter(value => value !== 'password');
}

View File

@@ -244,7 +244,7 @@ User.addInterstitials = function (callback) {
plugins.hooks.register('core', {
hook: 'filter:register.interstitial',
method: [
User.interstitials.email, // Email address (for password reset + digest)
User.interstitials.email, // Email address
User.interstitials.gdpr, // GDPR information collection/processing consent + email consent
User.interstitials.tou, // Forum Terms of Use
],

View File

@@ -108,7 +108,6 @@ UserReset.commit = async function (code, password) {
'password:shaWrapped': 1,
};
// don't verify email if password reset is due to expiry
const isPasswordExpired = userData.passwordExpiry && userData.passwordExpiry < Date.now();
if (!isPasswordExpired) {
data['email:confirmed'] = 1;