Skip to content
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

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

singhsanket143
Copy link
Contributor

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.

client/views/add/add.js Outdated Show resolved Hide resolved
name: item.slice(0, item.indexOf('@'))
}
});
await Accounts.forgotPassword({email: item}, (err) => {
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

client/views/add/add.js Outdated Show resolved Hide resolved
@peter-hank peter-hank force-pushed the dev branch 6 times, most recently from 18c4e1e to 4167cce Compare May 31, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants