{"id":14955607,"url":"https://github.com/uuushiro/devise_sms_confirmable","last_synced_at":"2025-10-08T18:02:42.122Z","repository":{"id":35033617,"uuid":"198845701","full_name":"uuushiro/devise_sms_confirmable","owner":"uuushiro","description":"Module provide sms confirmation.You can handle SMS Message template  as Devise handles ActionMailer template.","archived":false,"fork":false,"pushed_at":"2023-01-20T11:34:56.000Z","size":3196,"stargazers_count":11,"open_issues_count":13,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T09:04:44.473Z","etag":null,"topics":["devise","gem","rails","rails5","ruby","sms"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uuushiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-25T14:21:50.000Z","updated_at":"2023-12-13T02:17:53.000Z","dependencies_parsed_at":"2023-02-12T01:40:13.200Z","dependency_job_id":null,"html_url":"https://github.com/uuushiro/devise_sms_confirmable","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/uuushiro/devise_sms_confirmable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uuushiro%2Fdevise_sms_confirmable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uuushiro%2Fdevise_sms_confirmable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uuushiro%2Fdevise_sms_confirmable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uuushiro%2Fdevise_sms_confirmable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uuushiro","download_url":"https://codeload.github.com/uuushiro/devise_sms_confirmable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uuushiro%2Fdevise_sms_confirmable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260598801,"owners_count":23034386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devise","gem","rails","rails5","ruby","sms"],"created_at":"2024-09-24T13:11:26.523Z","updated_at":"2025-10-08T18:02:37.082Z","avatar_url":"https://github.com/uuushiro.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeviseSmsConfirmable\n\nDeviseSmsConfirmable is a module provide SMS confirmation. The user will receive an SMS with a token that can be entered on the site to activate the account. You can handle SMS's Message template as Devise handles ActionMailer's template.\n\n## Installation\nInstallation for Rails ~\u003e 5.1.4 and Devise ~\u003e 4.6.2\nAdd this line to your application's Gemfile (and Devise and TwilioRuby if you weren't using them):\n\n```ruby\ngem 'devise'\ngem 'devise_sms_confirmable'\ngem 'twilio-ruby'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install devise_sms_confirmable\n\n## Usage\nTo use it, simply specify your DeviseSmsConfirmable configuration in ```config/initializers/devise.rb```:\n\n```ruby\n# Load the module for SMS confirmation\nrequire 'devise_sms_confirmable'\n# Default source phone number\nconfig.sms_sender = 'some_e164_phone_number'\n```\n\n### Configuring Models\nAdd :sms_confirmable option to The Devise method in your models.\n\n```ruby\ndevise :database_authenticatable, :sms_confirmable\n\n``` \n\n### Add columns to model\n```ruby\nt.string   :phone,              null: false, default: \"\"\nt.string   :sms_confirmation_token\nt.datetime :sms_confirmed_at\nt.datetime :sms_confirmation_sent_at\n# t.string   :unconfirmed_phone # Only if using reconfirmable\n```\n\n### Allow models to sign in using their phone number\n\n```ruby\nconfig.authentication_keys = [:phone]\n```\n\n## Configuring twilio-ruby \n\nconfig/initializers/twilio.rb\n\n### Choosing and chaining delivery methods\ndevise_sms_confirmable use [textris](https://github.com/visualitypl/textris) for the delivery system. See textris for details.\nThe following is a sample (quoted from textris) using twilio.\n\n```ruby\n# Send messages via the Twilio REST API\nconfig.textris_delivery_method = :twilio\n\n# Don't send anything, log messages into Rails logger\nconfig.textris_delivery_method = :log\n\n# Don't send anything, access your messages via Textris::Base.deliveries\nconfig.textris_delivery_method = :test\n```\n\n### Twilio\ntextris connects with the Twilio API using twilio-ruby gem. It does not, however, install the gem for you. If you don't have it yet, add the twilio-ruby gem to Gemfile:\n\n```ruby\ngem 'twilio-ruby'\n```\n\nThen, pre-configure the twilio-ruby settings by creating the config/initializers/twilio.rb file:\n\n```ruby\n\nTwilio.configure do |config|\n  config.account_sid = 'some_sid'\n  config.auth_token  = 'some_auth_token'\nend\n```\n\nTo use Twilio's Copilot use twilio_messaging_service_sid in place of from when sending a text or setting defaults.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/devise_sms_confirmable. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the DeviseSmsConfirmable project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/devise_sms_confirmable/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuuushiro%2Fdevise_sms_confirmable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuuushiro%2Fdevise_sms_confirmable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuuushiro%2Fdevise_sms_confirmable/lists"}