Created
January 10, 2021 21:02
Share password using inherited send_sms module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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