News for hackers. Stuff that matters.
Re:NodeBB: Node.js-based forum software by runj__ on Monday June 23, 2014 @09:07AM (#7931687)
It initializes the Auth module with the User object. The Auth module in turn extends the User object with the property 'auth'.

The auth property is then extended with a 'logAttempt' function and a 'clearLoginAttempts' function.

The User object in the parent context can then use these properties.

Oh, and I agree that the tabbing makes it look ridiculous. Javascript should use two spaces, nothing more, nothing less (let the fight begin).

Re:NodeBB: Node.js-based forum software by b3n on Tuesday June 24, 2014 @07:50AM (#7937177)
> Oh, and I agree that the tabbing makes it look ridiculous. Javascript should use two spaces, nothing more, nothing less (let the fight begin).

That's not the code's fault, GitHub should set the tab-size[1] property to something more legible.

[1] http://www.w3.org/TR/css3-text/#tab-size