volt-user-templates 0.0.1 → 0.0.3
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/VERSION +1 -1
- data/app/user-templates/controllers/signup_controller.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b55f0963702bee1d10455188c64cf7f8be47b3
|
4
|
+
data.tar.gz: 6474fbc54a9f277e15181b99db975e29823083c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd64216f5950cd6e88114cfb125987acd4663d94f33198529228303e5cc5c3eee6de76d0fc9ff3adf1360b3f155aaef5e5aa6f23d65f71b828b854571cde05a5
|
7
|
+
data.tar.gz: e5a6955824833d60a47bc71417851ab9406ed465f7c0f3cdc37cf0674e4d16e4905b131c3abd46fd413af6b848d6c6f4de2fd0828d5d69b5263f29ac300a21ea
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -5,12 +5,23 @@ module UserTemplates
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def signup
|
8
|
+
# Get login and password to login
|
9
|
+
login = model.send(:"_#{User.login_field}")
|
10
|
+
password = model._password
|
11
|
+
|
8
12
|
save!.then do |result|
|
9
13
|
flash._notices << "Signup successful"
|
10
14
|
|
11
15
|
post_signup_url = attrs.post_signup_url.or('/')
|
12
16
|
|
13
|
-
|
17
|
+
# On a successful signup, then login
|
18
|
+
Volt.login(login, password).then do
|
19
|
+
# Redirect to post signup url
|
20
|
+
go post_signup_url
|
21
|
+
end.fail do |errors|
|
22
|
+
# Show the error (probably only the server goes down)
|
23
|
+
flash._errors << errors.to_s
|
24
|
+
end
|
14
25
|
end.fail do |err|
|
15
26
|
puts "ERR: #{err.inspect}"
|
16
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt-user-templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: volt-fields
|