-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added moderator addition to db #133
base: dev
Are you sure you want to change the base?
Added moderator addition to db #133
Conversation
server/methods.js
Outdated
name: item.slice(0, item.indexOf('@')) | ||
} | ||
}); | ||
await Accounts.forgotPassword({email: item}, (err) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@singhsanket143 MAIL_ID_FROM
is not set here for some reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peter-hank According to me in Accounts.forgotPassword only the target email whose password is supposed to be reset is passed, the MAIL_ID_FROM will be preconfigured from the code and session variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@singhsanket143 unfortunately, it doesn't work, it doesn't use the MAIL_ID_FROM
variable in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peter-hank I have updated the code to rectify this issue.
…into Feature_Add_Moderator
…into Feature_Add_Moderator
18c4e1e
to
4167cce
Compare
The pull request is implementation for the feature listed in issue #16612.
If a user's email is not in the DB that is fine. Rather than throwing the error telling the creator to go tell the mod to sign up for an account and they will be added.
The process is as follows:
Enter an email address -> if the email is in DB perfect add them to the instance, else create an account for that user with the provided email address --> once the account is created send that user a welcome message & trigger password reset.