Skip to content

Instantly share code, notes, and snippets.

@dsasse07
Created Jan 10, 2021
Embed
What would you like to do?
Share password using inherited send_sms module
class Password
belongs_to :group_service
include TwilioControls
def share_password(user, to_phone_number)
body = "#{user.display_full_name} has shared a password!\n
Service Name: #{self.group_service.service.name}
Username: #{self.group_service.service_username}
Password: #{self.password}"
send_sms(to_phone_number, body)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment