Are there examples of how to use Sinatra and Warden with 'confirmation' and 'forgot password' mail support?
On my reading of the Warden documentation, 'confirmation' and 'forgot password' are largely outside the scope of Warden. Here is how to approach implementing confirmation as an example.
confirm
and confirmed?
methods to your User
class. :unconfirmed
scope to warden. This will be used to allow access to your confirmation page when logged in, but not confirmed.authenticate!
method, check both the User
s authentication as well as the confirmed?
method.