gollum-auth 0.6.0 → 0.6.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: 2332f8bd41813aec6b0160d881a45938a7cd09ea
4
- data.tar.gz: 0c670cedc7983d9408c5aa6d773ba0d88031d7e3
3
+ metadata.gz: dd972a91cd7e36e3c14753b039145f7d96cdaaff
4
+ data.tar.gz: 22ce147e8d8df66733b90a39e6a19d4a2889478f
5
5
  SHA512:
6
- metadata.gz: ffdc89c8f9a2b0164d134b2fd6e9c007e562da21595bec50e58755250809ee90c4d7a7d3f360bf164ed74131004b261bc680dbe41be16db8704d19d08ccf9af1
7
- data.tar.gz: 20b0807e3131edb0306b1b1f19ee9e34b063a186433aad2306b87228c9edbfea6d44cd08668ed88f5e614e3889bebbbbceb35af10a6e29560a39b4d79501d6b3
6
+ metadata.gz: 3198326320c02c6040872374c6a833bb302a7e49b180e06ae397d5e0351da6e63085be6779e203b3b7b0eb205b2622cefdadfc33ac8b29628eb2e171e6cc50bf
7
+ data.tar.gz: 7994dbf44c75a976df331ce11d1b23ccc35cb8243f130bf14f48def879fb83f12ea4ef98ddf222aecd77ee63f78ee06bde97381c3415b58e8a0e579008dda714
@@ -40,11 +40,11 @@ module Gollum::Auth
40
40
  end
41
41
 
42
42
  def valid_password?(password)
43
- password_digest == build_digest(password)
43
+ Rack::Utils.secure_compare(password_digest, build_digest(password))
44
44
  end
45
45
 
46
46
  def password=(password)
47
- self.password_digest = build_digest(password) if password
47
+ self.password_digest = build_digest(password.to_s) if password
48
48
  end
49
49
 
50
50
  private
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  module Auth
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Björn Albers
@@ -168,5 +168,5 @@ rubyforge_project:
168
168
  rubygems_version: 2.6.10
169
169
  signing_key:
170
170
  specification_version: 4
171
- summary: gollum-auth-0.6.0
171
+ summary: gollum-auth-0.6.1
172
172
  test_files: []