-
Notifications
You must be signed in to change notification settings - Fork 108
add new routes for frontend authentication and user flow #473
base: master
Are you sure you want to change the base?
Conversation
@@ -13,7 +13,8 @@ def create | |||
user = User.new(user_params) | |||
|
|||
if user.save | |||
user.welcome_user | |||
user.invite_to_slack | |||
user.add_to_send_grid |
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.
these should probably occur after sign_in
right? Unsure why user.welcome_user
was listed before UserMailer.welcome(user).deliver unless user.invalid?
end | ||
end | ||
|
||
def me |
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.
what's happening in this method?
@@ -23,7 +23,9 @@ def initialize(subdomain:, token:) | |||
end | |||
|
|||
def invite(extra_message:, email:, channels: []) | |||
Rails.logger.info "Inviting user with email '#{email}'" | |||
# unsure if some string expansion is causing an error here | |||
Rails.logger.info 'Inviting slack user user' |
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.
you can prolly delete this line and comment above
Would still love to see API documentation updated FWIW - u had that in this PR |
I bring you back from the dead - i want all of u |
+ email (string, required) - Email of the User in the form of a string | ||
+ zip (string, required) - Zipcode of the User in the form of a string | ||
+ first_name (string, required) - First Name of the user in the form of an string | ||
+ last_name (string, required) - Last Name of the user in the form of an string | ||
+ mentor (string, optional) - in the form of a string |
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.
this should be a boolean
Description of changes
Issue Resolved
Fixes #471