Project

mori

0.0
No commit activity in last 3 years
No release in over 3 years
Mori is a lightweight module based authentication platform. Mori uses Warden for session management, and is intended to be easy to overwrite, and configurable.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Mori

Badgers

Code Climate Build Status Coverage Status

Mori is a lightweight Rails Engine built to handle authentication.

Mori was built with the intention of being easy to override, and easy to implement.

Installing

Mori is a Rails Engine tested against Rails 3.2+ and Ruby 1.9.3+

Include it in your Gemfile

gem 'mori'

Bundle

bundle install

After your development database exists, run the generator

rails g mori:install

The generator does the following:

  • Inserts Mori::User in your User model (or creates the User Model)
  • Inserts Mori::Controller in your ApplicationController
  • Creates a migration to add missing collumns, or create a new table.

Configuration

Mori comes with configuration options. You can override defaults in config/initializers/mori.rb

Mori.configure do |config|

  # Mori Default Configuration

  config.from_email = 'reply@example.com'
  config.app_name = Rails.application.class.parent_name.humanize
  config.allow_sign_up = true
  config.dashboard_path = '/'
  config.after_sign_up_path = '/'
  config.after_logout_path = '/'
  config.token_expiration = 14
end