Manual Installation
Create a migration and paste in:
Granite:
or
Jennifer:
Migrate
Create a controller titled
registration_controller.cr
and paste in this file: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 yourmochi_granite
macro callor
Jennifer:
Add
:confirmable
to yourmochi_jennifer
macro callAdd/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!
Last updated