{"repo":"excid3/revise_auth","free":true,"listed":false,"github":"https://github.com/excid3/revise_auth","clone":"git clone https://github.com/excid3/revise_auth.git","description":"A pure Rails authentication system like Devise.","language":"Ruby","stars":428,"topics":["authentication","rails","ruby","rubyonrails"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"ReviseAuth A pure Ruby on Rails authentication system like Devise. Installation Add this line to your application's Gemfile: and then run bundle install . Or run this command: Usage Models ReviseAuth is designed around a single User model. Execute the following to generate the User model: Optionally, you can add other fields such as first name and last name : And then run: Roles / Other User Types ReviseAuth only works with a single model to keep things simple. We recommend adding roles to handle other types of users. You can accomplish this in a few different ways: A roles attribute on the User model The Rolify gem Routes The model generator will automatically add ReviseAuth's routes to your router: You will want to define a root path. After login (see below), the user will be redirected to the root path. Views ReviseAuth uses the flash to display notices and alerts, so make sure flash messages are rendered by your application: Filters and Helpers To protect your actions from unauthenticated users, you can use the authenticate user! filter: In your views, you can use user signed in? to verify if a user is signed in and current user for using the signed in user. Mailer ReviseAuth will send some emails: password reset confirmation instructions Make sure you have the default url options set: Note: This should be set in all environments. Customizing To customize views, you can run: This will copy the views into app/views/revise auth in your application. Form Permitted Params To ","default_branch":null,"files":null,"tree":[],"storefront":"/r/excid3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/excid3/revise_auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}