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: 065648de33bda76bde6c4a4650868d397d13a474
4
- data.tar.gz: 9fdcdcfb88acffcea3cdc81e9c5c20242fa0daf0
3
+ metadata.gz: 62512dde61aa7cdb3146a0f47a0a829b2ef340d7
4
+ data.tar.gz: 8928e1ea07b318108bba8cce90aa2d61acf924a7
5
5
  SHA512:
6
- metadata.gz: db21b78be8024e6e464dafec5a544d20fcddf947f4a8541a87d75296ee52743b9d68bf471f26cfb1fca5a723ef3af8a37432515c156f3b7b24f2957dab47012a
7
- data.tar.gz: cf3570f7fbb845053c3bffabe968211a2cfb40fc8de1a54bad9d29cc92311ce9666cf2ca037a4a879881d394377ff82c392de3ac00aa695ddd348b752e54063d
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
- module Security
4
- class AuthenticationsController < ::KirguduBase::ApplicationController
11
+ render
5
12
 
6
- def confirm
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
- if params[:email]
26
- user = ::KirguduBase::Security::User.get_by_email(params[:email])
27
- if user
28
- confirmation = ::KirguduBase::Security::EmailConfirmation.where
29
- else
30
- local_data[:errors] = "User With This Email Not Found"
31
- transaction_result = false
32
- end
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 Supplied"
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
- if transaction_result
39
- else
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.22
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-14 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails