user_authentication 1.2.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/user_authentication.rb +12 -1
- data/lib/user_authentication/version.rb +1 -1
- metadata +3 -5
- data/config/routes.rb +0 -8
- data/lib/user_authentication/version.rb~ +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1290fcf0cd4be8593675206e2e2b7a1bad4bf860
|
4
|
+
data.tar.gz: 9aa3253d9ccc6814236e2fd36be987abde5cf23e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52652bc849c384e5c3ef577f3f644e516e4cc79bc55e623deca68c79ab2e002b3e3c07ff7345728990ce8f0f0c31965c885e8f45ae33c16c1f2f79a45721b708
|
7
|
+
data.tar.gz: e45024f92f338452b8130768d3132fd5abe22e49fd0694e582ad4978674cb83008d2298d9b532a68780860dbd4fb7d3072b63994957e915a6bee0a5c084a63db
|
data/lib/user_authentication.rb
CHANGED
@@ -12,5 +12,16 @@ module UserAuthentication
|
|
12
12
|
config.after_initialize do
|
13
13
|
require File.expand_path('../../app/models/account', __FILE__)
|
14
14
|
end
|
15
|
+
|
16
|
+
def self.routes
|
17
|
+
Rails.application.routes.draw do
|
18
|
+
get 'login' => 'accounts#login'
|
19
|
+
post 'login' => 'accounts#do_login'
|
20
|
+
get 'logout' => 'accounts#logout'
|
21
|
+
post 'set_password' => 'accounts#do_set_password'
|
22
|
+
get 'signup' => 'accounts#signup'
|
23
|
+
post 'signup' => 'accounts#do_signup'
|
24
|
+
end
|
25
|
+
end
|
15
26
|
end
|
16
|
-
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -154,13 +154,11 @@ files:
|
|
154
154
|
- app/views/accounts/default_signup.html.erb
|
155
155
|
- app/views/shared/_login.html.erb
|
156
156
|
- app/views/shared/_signup.html.erb
|
157
|
-
- config/routes.rb
|
158
157
|
- db/migrate/20121009010000_create_accounts.rb
|
159
158
|
- lib/random.rb
|
160
159
|
- lib/tasks/user_authentication_tasks.rake
|
161
160
|
- lib/user_authentication.rb
|
162
161
|
- lib/user_authentication/version.rb
|
163
|
-
- lib/user_authentication/version.rb~
|
164
162
|
homepage: http://github.com/sujoyg/user_authentication
|
165
163
|
licenses:
|
166
164
|
- MIT
|
@@ -181,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
179
|
version: '0'
|
182
180
|
requirements: []
|
183
181
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.4.
|
182
|
+
rubygems_version: 2.4.8
|
185
183
|
signing_key:
|
186
184
|
specification_version: 4
|
187
185
|
summary: A rails engine for email and password based account authentication.
|
data/config/routes.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
Rails.application.routes.draw do
|
2
|
-
get 'login' => 'accounts#login'
|
3
|
-
post 'login' => 'accounts#do_login'
|
4
|
-
get 'logout' => 'accounts#logout'
|
5
|
-
post 'set_password' => 'accounts#do_set_password'
|
6
|
-
get 'signup' => 'accounts#signup'
|
7
|
-
post 'signup' => 'accounts#do_signup'
|
8
|
-
end
|