Chore: Migration to enable email channel (#1913)

fixes: #1877
This commit is contained in:
Sojan Jose
2021-03-15 19:15:48 +05:30
committed by GitHub
parent 3fd398879e
commit b6f4006c15
8 changed files with 46 additions and 7 deletions

View File

@@ -10,20 +10,16 @@ class Platform::Api::V1::UsersController < PlatformController
@resource.confirm
@resource.save!
@platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource)
render json: @resource
end
def login
render json: { url: "#{ENV['FRONTEND_URL']}/app/login?email=#{@resource.email}&sso_auth_token=#{@resource.generate_sso_auth_token}" }
end
def show
render json: @resource
end
def show; end
def update
@resource.update!(user_params)
render json: @resource
end
def destroy