monban-generators 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.rdoc +3 -0
- data/README.md +3 -2
- data/lib/generators/monban/templates/app/controllers/password_resets_controller.rb +2 -2
- data/lib/generators/monban/templates/app/controllers/sessions_controller.rb +1 -2
- data/lib/generators/monban/templates/app/controllers/users_controller.rb +1 -2
- data/lib/generators/monban/templates/app/views/password_resets/edit.html.erb +1 -1
- data/lib/generators/monban/templates/app/views/password_resets/new.html.erb +1 -1
- data/lib/generators/monban/templates/app/views/users/new.html.erb +2 -2
- data/lib/monban/generators/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a6704fdf1d9d2cdfdca7e03be4cd00934738f62
|
|
4
|
+
data.tar.gz: 3c0d14b7ab93988a3a32d2cd2285cf7fa370ec34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e02412f9ee4bdc5caccf3101f11902582f29d996335b22daad851b3fce9e45dcd308458fc4e6768cd8b6e1811498112c6bea387d8e1d957b763f84e9c4af4ad0
|
|
7
|
+
data.tar.gz: 7b48302447c59d621acc3b9633c9f30c88062cb26d1ea6224f1cf89086caee08e8dfe43e2edc828aae36e5c33833c3fec06fcd39f300ce488878281d11c90879
|
data/NEWS.rdoc
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Monban::Generators
|
|
2
2
|
|
|
3
|
-
Rails generators for adding in authentication components
|
|
3
|
+
Rails generators for adding in authentication components, using the
|
|
4
|
+
[Monban](https://github.com/halogenandtoast/monban) authentication library.
|
|
4
5
|
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
@@ -34,7 +35,7 @@ and production environments in order to make the mailer work.
|
|
|
34
35
|
|
|
35
36
|
## Contributing
|
|
36
37
|
|
|
37
|
-
1. Fork it
|
|
38
|
+
1. [Fork it](http://github.com/halogenandtoast/monban-generators/fork)
|
|
38
39
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
39
40
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
40
41
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class PasswordResetsController < ApplicationController
|
|
2
|
-
skip_before_action :require_login, only: [:new, :create, :edit, :update]
|
|
2
|
+
skip_before_action :require_login, only: [:new, :create, :edit, :update], raise: false
|
|
3
3
|
|
|
4
4
|
def new
|
|
5
5
|
@password_reset = PasswordReset.new
|
|
@@ -9,7 +9,7 @@ class PasswordResetsController < ApplicationController
|
|
|
9
9
|
user = User.find_by(email: params[:password_reset][:email])
|
|
10
10
|
if user
|
|
11
11
|
password_reset = PasswordReset.create(user: user)
|
|
12
|
-
PasswordResetMailer.change_password(password_reset).
|
|
12
|
+
PasswordResetMailer.change_password(password_reset).deliver_now # NOTE: You'll want to delay this
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class SessionsController < ApplicationController
|
|
2
|
-
skip_before_action :require_login, only: [:new, :create]
|
|
2
|
+
skip_before_action :require_login, only: [:new, :create], raise: false
|
|
3
3
|
|
|
4
4
|
def new
|
|
5
5
|
end
|
|
@@ -25,4 +25,3 @@ class SessionsController < ApplicationController
|
|
|
25
25
|
params.require(:session).permit(:email, :password)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class UsersController < ApplicationController
|
|
2
|
-
skip_before_action :require_login, only: [:new, :create]
|
|
2
|
+
skip_before_action :require_login, only: [:new, :create], raise: false
|
|
3
3
|
|
|
4
4
|
def new
|
|
5
5
|
@user = User.new
|
|
@@ -22,4 +22,3 @@ class UsersController < ApplicationController
|
|
|
22
22
|
params.require(:user).permit(:email, :password)
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
|
-
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
<div>
|
|
13
13
|
<%= form.label :email %>
|
|
14
|
-
<%= form.email_field :email %>
|
|
14
|
+
<%= form.email_field :email, require: true %>
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
17
|
<%= form.label :password %>
|
|
18
|
-
<%= form.password_field :password %>
|
|
18
|
+
<%= form.password_field :password, require: true %>
|
|
19
19
|
</div>
|
|
20
20
|
<div>
|
|
21
21
|
<%= form.submit "Sign up" %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monban-generators
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- halogenandtoast
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
version: '0'
|
|
109
109
|
requirements: []
|
|
110
110
|
rubyforge_project:
|
|
111
|
-
rubygems_version: 2.
|
|
111
|
+
rubygems_version: 2.4.5.1
|
|
112
112
|
signing_key:
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: Rails generators for the monban authentication library
|