Skip to content

Commit

Permalink
1Password Update + possible fixes to verify.rb (#144)
Browse files Browse the repository at this point in the history
* 1Password Update

1Password now Supports OTP and U2F

* Update identity.yml

Included exception

* Update verify.rb

Seems to be throwing errors here

* Update verify.rb

* Update identity.yml

* Removed exception
  • Loading branch information
Flash Deviant authored and alex-nitrokey committed Sep 21, 2018
1 parent beb21b0 commit e1fc068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _data/identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ websites:
img: 1password.png
tfa: Yes
software: Yes
hardware: Yes
otp: Yes
doc: https://support.1password.com/two-factor-authentication/

- name: Bitium
Expand Down
2 changes: 2 additions & 0 deletions verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def error(msg)
def test_img(img, name, imgs)
# Exception if image file not found
raise "#{name} image not found." unless File.exist?(img)

# Remove img from array unless it doesn't exist (double reference case)
imgs.delete_at(imgs.index(img)) unless imgs.index(img).nil?

Expand Down Expand Up @@ -86,6 +87,7 @@ def test_img_file(img)
websites.each do |website|
@tfa_tags[!website['tfa']].each do |tag|
next if website[tag].nil?

error("\'#{tag}\' should NOT be "\
"present when tfa: #{website['tfa'] ? 'true' : 'false'}.")
end
Expand Down

0 comments on commit e1fc068

Please sign in to comment.