Authpro is a simple authentication generator for Rails 4.1 It:
- Gives you sign up, log in, remember me & password reset functionality
- Has no hidden code, special super classes or mixins
- Has no configuration.
Authpro assumes you want:
- User as the model
- Email for login
- Erb for views. This might be configurable in the future because I like writing views using Slim.
However, you can easily change the code that Authpro generates if you want to. It's just simple Ruby / Rails code.
To be honest you really should change the generated code. Most of the code in the user model should be moved to a different place. You can use the new concerns functionality in Rails 4. More information about concerns can be found here.
If concerns concerns you, you can always extract the code into Service Objects. More info about Service Objects can be found here.
Add this line to your application's Gemfile:
And then execute:
$ bundle $ rails generate authpro $ rake db:migrate $ rails server
$ open http://localhost:3000
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request