mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-05 16:17:20 +02:00
refactor: remove "password" in comments
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
],
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user