kirgudu_base 0.0.22 → 0.0.23
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: 62512dde61aa7cdb3146a0f47a0a829b2ef340d7
|
4
|
+
data.tar.gz: 8928e1ea07b318108bba8cce90aa2d61acf924a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93542c4c4f5df64407e3871eb33bef7ce483abc298fb90ef2049313deda569bc8fe434c99d5f4d72e81658582da14eb35aafe16a9e90a241d7e9b774f8796ad3
|
7
|
+
data.tar.gz: 0c369324f159f426bffff49f801492814987b4398d5622e49c6226af0f627bac0c896ef28acef62c223e94e06d62279ed753c7e49586b173cdfb15a6d476bc1f
|
@@ -1,46 +1,42 @@
|
|
1
1
|
module KirguduBase
|
2
|
+
class Security::EmailConfirmationsController < ::KirguduBase::ApplicationController
|
3
|
+
def confirm
|
4
|
+
local_data = {
|
5
|
+
errors: [],
|
6
|
+
messages: []
|
7
|
+
}
|
8
|
+
local_data[:email] = params[:email]
|
9
|
+
local_data[:code] = params[:code]
|
2
10
|
|
3
|
-
|
4
|
-
class AuthenticationsController < ::KirguduBase::ApplicationController
|
11
|
+
render
|
5
12
|
|
6
|
-
|
7
|
-
local_data = {
|
8
|
-
errors: [],
|
9
|
-
messages: []
|
10
|
-
}
|
11
|
-
local_data[:email] = params[:email]
|
12
|
-
local_data[:code] = params[:code]
|
13
|
-
|
14
|
-
render
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
def process
|
19
|
-
local_data = {
|
20
|
-
messages: [],
|
21
|
-
errors: []
|
22
|
-
}
|
23
|
-
transaction_result = true
|
13
|
+
end
|
24
14
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
15
|
+
def process
|
16
|
+
local_data = {
|
17
|
+
messages: [],
|
18
|
+
errors: []
|
19
|
+
}
|
20
|
+
transaction_result = true
|
21
|
+
|
22
|
+
if params[:email]
|
23
|
+
user = ::KirguduBase::Security::User.get_by_email(params[:email])
|
24
|
+
if user
|
25
|
+
#confirmation = ::KirguduBase::Security::EmailConfirmation.where
|
33
26
|
else
|
34
|
-
local_data[:errors] = "Email Not
|
27
|
+
local_data[:errors] = "User With This Email Not Found"
|
35
28
|
transaction_result = false
|
36
29
|
end
|
30
|
+
else
|
31
|
+
local_data[:errors] = "Email Not Supplied"
|
32
|
+
transaction_result = false
|
33
|
+
end
|
37
34
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
35
|
+
if transaction_result
|
36
|
+
else
|
42
37
|
|
43
38
|
end
|
39
|
+
|
44
40
|
end
|
45
41
|
end
|
46
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kirgudu_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitrofanov Dmitry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|