Skip to content
Dmytro Stepaniuk edited this page Sep 28, 2018 · 8 revisions

Welcome to the api_session_recovering wiki! 😼

Q: do we send sms or email for password restoring?

Depending on params U are passing - it can sent email with link or sms with code.

Q: How can I use my own Base/Application controller?

use controller_to_inherit_from

Q: What if my users are not stored in users table?

see users_table_name configuration

Q: is there any list of available options to configure?

plz check out CONFIGURATION

Q: how can I configure twilio?

See initializer first.

Also, its supposed that there are 2 env variables

  • TWILIO_SID
  • TWILIO_TOKEN

Q: how can I change default frontend path?

Check out env variable

  • API_SESSION_RECOVERING_FRONTEND_PATH

Q: how can I customize restore password email template?

Yes. U can.

If u want to see to change layout - see initializer

If u want to customize email.html.erb itself - generate it using

rails g api_session_recovering:mailers