Git Product home page Git Product logo

ethereum-on-rails's Introduction

ethereum-on-rails's People

Contributors

ltfschoen avatar q9f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ethereum-on-rails's Issues

I have question. I think this code have security risk

When signup, is it possible to send eth addresses other than my own from the front end to the back end?

I think that since the app/javascript/packs/users_new.js puts your address into the form on the front side, the backend side cannot determine if this is really the address of the user who submitted the post.

Wrong expiry_time comparation

Hello, thanks for the awesome repo, it will be useful for many users.

I guess this time conditional in SessionsController is always true:

request_time = Time.at(request_time.to_f / 1000.0)
expiry_time = request_time + 300

# also make sure the parsed request_time is sane
 # (not nil, not 0, not off by orders of magnitude)
sane_checkpoint = Time.parse "2021-01-01 00:00:00 UTC"
if request_time and request_time > sane_checkpoint and request_time < expiry_time

Because when you sum expiry_time + 300, it always be big then request_time, maybe we need to change request time to Time.now, like:

request_time and request_time > sane_checkpoint and Time.zone.now < expiry_time

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.