user_authentication 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b82e194cda8c1e163a1cf4e5bf41b9f8947720ed
|
4
|
+
data.tar.gz: b2e73713043f9b7ae1d42b6618686163918a533e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dd15417e7824f50515aefd3f9de9ad86ab384ed2f179bf9a32dce7c891d02fa8b910845e9b0a9ddae1036dee2052e905c9b7f79e2392ca2df3dcbde611758f3
|
7
|
+
data.tar.gz: 4eb8b3e65fab301ccf7b986c8cff5e5f3b9a6260143ddd19ee5dabb780293053ad7df07860021f2b3baf7b041fdc4c7353f8936734e5bf9164ea0828ad2c4a74
|
@@ -2,6 +2,12 @@ class AccountsController < ApplicationController
|
|
2
2
|
before_filter :authorize, only: [:do_set_password]
|
3
3
|
|
4
4
|
def login
|
5
|
+
template = File.join Rails.root, 'app/views/accounts/login'
|
6
|
+
if File.exists? template
|
7
|
+
render template
|
8
|
+
else
|
9
|
+
render 'accounts/default_login'
|
10
|
+
end
|
5
11
|
end
|
6
12
|
|
7
13
|
|
@@ -35,6 +41,12 @@ class AccountsController < ApplicationController
|
|
35
41
|
|
36
42
|
|
37
43
|
def signup
|
44
|
+
template = File.join Rails.root, 'app/views/accounts/signup'
|
45
|
+
if File.exists? template
|
46
|
+
render template
|
47
|
+
else
|
48
|
+
render 'accounts/default_signup'
|
49
|
+
end
|
38
50
|
end
|
39
51
|
|
40
52
|
|
File without changes
|
File without changes
|
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: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -150,8 +150,8 @@ files:
|
|
150
150
|
- app/helpers/application_helper.rb
|
151
151
|
- app/models/account.rb
|
152
152
|
- app/validators/email_validator.rb
|
153
|
-
- app/views/accounts/
|
154
|
-
- app/views/accounts/
|
153
|
+
- app/views/accounts/default_login.html.erb
|
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
157
|
- config/routes.rb
|