-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
Signed-off-by: guacamole <gunjanwalecha@gmail.com>
Signed-off-by: guacamole <gunjanwalecha@gmail.com>
a410535
to
24565f1
Compare
config/config.go
Outdated
@@ -99,6 +101,7 @@ func NewStoreConfig() (*Store, error) { | |||
} | |||
|
|||
func (sc *Store) Endpoint() string { | |||
color.Green("stoer: %s", sc) |
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.
@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{ |
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.
@guacamole return the actual error
} | ||
err = a.emailClient.WelcomeEmail(strings.Split(list.Emails, ",")) | ||
if err != nil { | ||
return ctx.JSON(http.StatusInternalServerError, echo.Map{ |
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.
@guacamole add logger here too
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.
@guacamole LGTM 🥇 🥇 🥇 good work on this one :)
Signed-off-by: guacamole <gunjanwalecha@gmail.com>
24565f1
to
681ea12
Compare
this PR fixes #115