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

Password management apis #132

Merged
merged 3 commits into from
Mar 31, 2022
Merged

Password management apis #132

merged 3 commits into from
Mar 31, 2022

Conversation

guacamole
Copy link
Member

@guacamole guacamole commented Mar 31, 2022

this PR fixes #115

  • email service integrated for sending out /invites along with reset password and activate account links

Signed-off-by: guacamole <gunjanwalecha@gmail.com>
Signed-off-by: guacamole <gunjanwalecha@gmail.com>
@guacamole guacamole added enhancement New feature or request P2 P2 labels are used for significant features, improvements, etc labels Mar 31, 2022
@guacamole guacamole requested a review from jay-dee7 March 31, 2022 16:56
@guacamole guacamole self-assigned this Mar 31, 2022
@guacamole guacamole force-pushed the password-management-apis branch from a410535 to 24565f1 Compare March 31, 2022 16:58
@jay-dee7 jay-dee7 linked an issue Mar 31, 2022 that may be closed by this pull request
config/config.go Outdated
@@ -99,6 +101,7 @@ func NewStoreConfig() (*Store, error) {
}

func (sc *Store) Endpoint() string {
color.Green("stoer: %s", sc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guacamole please remove this

err = json.NewDecoder(ctx.Request().Body).Decode(&pwd)
if err != nil {
a.logger.Log(ctx, err)
return ctx.JSON(http.StatusBadRequest, echo.Map{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guacamole return the actual error

}
err = a.emailClient.WelcomeEmail(strings.Split(list.Emails, ","))
if err != nil {
return ctx.JSON(http.StatusInternalServerError, echo.Map{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guacamole add logger here too

Copy link
Member

@jay-dee7 jay-dee7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guacamole LGTM 🥇 🥇 🥇 good work on this one :)

Signed-off-by: guacamole <gunjanwalecha@gmail.com>
@guacamole guacamole force-pushed the password-management-apis branch from 24565f1 to 681ea12 Compare March 31, 2022 17:14
@guacamole guacamole merged commit 7f603ba into master Mar 31, 2022
@guacamole guacamole deleted the password-management-apis branch March 31, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 P2 labels are used for significant features, improvements, etc
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Reset Password
2 participants