standard-file 0.2.3 → 0.2.4

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: 7cab9a3cdbb26e476e6d5e8dbf0444376b83bf4f
4
- data.tar.gz: e32dbfd04e0ba86efe338989ccc26d1741e189b6
3
+ metadata.gz: 8a03e3c0f3410ad8df2c891754c0eec05438a882
4
+ data.tar.gz: f818dfdc6e96ea80d39c4a7bc990a38e1a076427
5
5
  SHA512:
6
- metadata.gz: c251d13e84a058e4653162c2f16f6288775b5c9d86b6de4fcd7fbc308b760ba5256539e708f2a3dec15d4816555f745be387c6321f819b6eb92f17e0734ccf6a
7
- data.tar.gz: 448d0a96f21a4b6538a45d21c7a28d6716cf6c8a23b3525c45ab2615c76d006b5cccc224db2e44a7c91ef5daf266252e1c3e88d6c24484fe51974870eab28a40
6
+ metadata.gz: 1e86b0bc992169cde89733fc7044d63a4adcd6a4a58777b0afd412fbe372946a2dc3e804d2fa560cd5ca2322c79d47ee2bb2d426feb5e01fea200f9fb4f2a615
7
+ data.tar.gz: fe6e2eab355a40c604b73d59a6128862b7bd30d3a5754acdf5bac509e07d84fdd992803abbf1b83a3c81cc968d240ce5638ff017ccbd23fdd38187539d1f5fe1
@@ -41,10 +41,15 @@ module StandardFile
41
41
  user = @user_class.find_by_email(email)
42
42
 
43
43
  if !user
44
- return {}
44
+ return nil
45
45
  end
46
-
47
- auth_params = {:pw_salt => user.pw_salt, :pw_cost => user.pw_cost, :pw_auth => user.pw_auth}
46
+
47
+ auth_params = {
48
+ :pw_salt => user.pw_salt,
49
+ :pw_cost => user.pw_cost,
50
+ :pw_auth => user.pw_auth,
51
+ :version => user.version
52
+ }
48
53
 
49
54
  if user.pw_func
50
55
  auth_params[:pw_func] = user.pw_func
@@ -76,7 +81,7 @@ module StandardFile
76
81
  end
77
82
 
78
83
  def registration_params(params)
79
- params.permit(:pw_func, :pw_alg, :pw_cost, :pw_key_size, :pw_nonce, :pw_salt, :pw_auth)
84
+ params.permit(:pw_func, :pw_alg, :pw_cost, :pw_key_size, :pw_nonce, :pw_salt, :pw_auth, :version)
80
85
  end
81
86
 
82
87
  end
@@ -1,3 +1,3 @@
1
1
  module StandardFile
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Standard File
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails