CLI Installation
Run the generator in console depending on your ORM:
Granite:
mochi g recoverable user graniteor
Jennifer:
mochi g recoverable user jenniferMigrate:
Granite:
amber db migrateor
Jennifer:
crystal sam.cr -- db:migrateMixin the required modules:
Granite:
Add
:recoverableto yourmochi_granitemacro callmochi_granite(:recoverable)or
Jennifer:
Add
:recoverableto yourmochi_jennifermacro callmochi_jennifer(:recoverable)Configure SMTP - Please follow amber guides for this.
Note: Amber will print out the token in console even if smtp is disabled. Find it, and paste with
your_url/confirm/reset/password?reset_token=to activate an account if you don't want to configure smtp on local.Pro Tip: Install icr, start it, and input
require "./config/application"and thenpp User.find(1)and you can copy/paste the token.
Done!
Last updated
Was this helpful?