Manual Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
Create a migration and paste in:
Granite:
or
Jennifer:
Migrate
Create a controller titled registration_controller.cr
and paste in this file:
registration_controller
Create a mailer titled confirmation_mailer.cr
and paste in this file:
Create a second mailer titled confirmation_mailer.text.ecr
and paste in this file:
Add this to your routes in the :web
pipeline:
Mixin the neccessary modules & macro:
Granite:
Add :confirmable
to your mochi_granite
macro call
or
Jennifer:
Add :confirmable
to your mochi_jennifer
macro call
Add/uncomment the mappings to your model:
Granite:
or
Jennifer:
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
/registration/confrim?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!