<FromGitter>
<drewbharris> (expecting that to be true, i must be missing something)
duane has quit [Ping timeout: 240 seconds]
maattdd has joined #crystal-lang
<FromGitter>
<bew> No, you can't retrive the original password from the hashed password
<FromGitter>
<drewbharris> i'm not trying to - i'm trying to compare the hashed original password with the previously hashed value
<FromGitter>
<drewbharris> think i figured it out though
maattdd has quit [Ping timeout: 260 seconds]
<FromGitter>
<bew> To check if the supplied password is correct, you need to encrypt it, and check that the 2 hashed version are the same (the one you just did, and the one you woukd have stored in a database)
<FromGitter>
<drewbharris> right - i think it was just my syntax. thanks!
<FromGitter>
<bew> I don't understand what you were trying to do though
<FromGitter>
<drewbharris> trying to hash the user's signup password, store the hash in the db, then later hash what the user provides at login and compare that with what's in the db, but i must be missing something
<FromGitter>
<bew> Maybe you're missing a to_s on hashed_login_password ?
<FromGitter>
<aisrael> If I’m not mistaken that’s not directly possible. Instead, the current idiom is to overload `foo(bar, &block)` with just `foo(bar)` (and in some cases, call the original method with an empty block).
<FromGitter>
<thegreyfellow> Hmm I see, thanks for the suggestion
<FromGitter>
<bew> I can't find the commit/PR where the local variable restriction syntax `local_var : Bool = true` has been added, anyone knows where to search?
<FromGitter>
<faustinoaq> @bew I think it was introduced after 18.7 😅
<FromGitter>
<bew> TIL I can use `@def` in macro code to access the current def, still not sure when this can be useful though.. (this was there since 0.20.0!!)
alex`` has quit [Ping timeout: 265 seconds]
<FromGitter>
<bew> @faustinoaq thanks, tried to look at the changelogs around this release until current, but I couldn't find it >< I give up for now
cremes has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
<FromGitter>
<bew> I remember telling some people here that this was not possible, I apologize...
faustinoaq has quit [Quit: IRC client terminated!]
hightower4 has joined #crystal-lang
DTZUZO has joined #crystal-lang
danielpclark has quit [Quit: Leaving]
maattdd has joined #crystal-lang
maattdd has quit [Ping timeout: 248 seconds]
alex`` has joined #crystal-lang
maattdd has joined #crystal-lang
maattdd has quit [Ping timeout: 255 seconds]
hightower3 has joined #crystal-lang
hightower4 has quit [Ping timeout: 260 seconds]
<FromGitter>
<bararchy> If someone will ask me what I really want in regard to shards, it's Javascript supported `HTTP::Client`, it would be great to have a client that can fetch javascript and eval it
hightower3 has quit [Ping timeout: 255 seconds]
alex`` has quit [Ping timeout: 276 seconds]
sandelius has joined #crystal-lang
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
sandelius has quit [Client Quit]
jnyw has joined #crystal-lang
jnyw has quit [Quit: WeeChat 2.0.1]
Ven`` has joined #crystal-lang
rohitpaulk has joined #crystal-lang
Ven`` has quit [Client Quit]
Ven`` has joined #crystal-lang
jeromegn has quit [Quit: Connection closed for inactivity]
<FromGitter>
<thegreyfellow> any idea why `===` gives false :/
<FromGitter>
<mamantoha> implementation of `===` differs depending on type
<FromGitter>
<straight-shoota> @bararchy for running JavaScript in a web context, you'll need to implement an entire browser engine including DOM, layout, JS runtime
<FromGitter>
<straight-shoota> you could use decomposition if query_one returned a tuple instead of a named tuple. But I don't think this would really an improvement
<greenbigfrog>
decomposition?
* greenbigfrog
just gound DB.mapping
<FromGitter>
<xfbs> How do I use class methods in an instance? `ClassName.method`? Or is there a better way?
alex`` has quit [Quit: WeeChat 2.0.1]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<thegreyfellow> so apparently we can not have class methods inside classes which negates your case. but if you need to call a calss method from a module, you can include the module and call it from inside the instance method. https://carc.in/#/r/3k66