Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

add new routes for frontend authentication and user flow #473

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

apex-omontgomery
Copy link
Member

Description of changes

Issue Resolved

Fixes #471

@@ -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
Copy link
Member

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
Copy link
Member

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'
Copy link
Member

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

@kylemh
Copy link
Member

kylemh commented Apr 21, 2019

Would still love to see API documentation updated FWIW - u had that in this PR

@kylemh kylemh reopened this Apr 22, 2019
@kylemh
Copy link
Member

kylemh commented Apr 22, 2019

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
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify User Flow routes: step 1
2 participants