Skip to content

jslag/session_management

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This is a small library for adding common methods for basic login to a Rails app. There are methods to add to a User (has_secure_password, token generation, authenticate method, etc) and basic methods to add to your controller and view helpers (current_user, log_in, require_user, etc).

I found myself copying and pasting these methods exactly as written in multiple projects, and I didn't want the baggage of a full auth library.

class User < ApplicationRecord
  include SessionManagement::User
end

class ApplicationController < ActionController::Base
  include SessionManagement::ApplicationController
end

About

Basic session management concerns for Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%