Git Product home page Git Product logo

Comments (5)

universal avatar universal commented on June 18, 2024

Hello can you check if it works if you apply #47 ? This might fix this!

from rubywarden.

MrClayPole avatar MrClayPole commented on June 18, 2024

Thanks for the patch. I've manually patched the lib/helper.rb file as per the commit and its now working.

from rubywarden.

MrClayPole avatar MrClayPole commented on June 18, 2024

Spoke to soon. Looks like it now saves every field apart from "Social Security Number"

from rubywarden.

universal avatar universal commented on June 18, 2024

i just checked the web-vault code, and it looks like for the other fields it looks for posted-name with first letter upcased, but for SSN it wants all letters upcased, so right now the code generates Ssn, but it wants SSN.

The chrome addon sends "ssn" as the parameter name, I'll cross-check with the web-vault and maybe one needs to special case ssn... :(

edith says: yep, the web-vault sends the keys in a different format, then it expects them back... :( no clue why this is, maybe because of historical reasons...

And changing the helper to this, solves this problem. It probably makes more sense to move this in an app specific helper like: BitwardenRuby::convert_params(p)

class Sinatra::IndifferentHash
  def ucfirst_hash
    out = {}
    self.each do |k,v|
      base = k.to_s
      out[base == "ssn" ? "SSN" : base.ucfirst] = v
    end
    out
  end
end

from rubywarden.

universal avatar universal commented on June 18, 2024

note to myself: need to cross-check with the new web-vault if anything in parameter handling changed there.

from rubywarden.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.