This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
let bcrypt = require('bcrypt'); | |
let expect = require('chai').expect; | |
describe('bcypt validating', function () { | |
it('should validate a bcrypt hash generated in PHP', function () { | |
let password = 'test'; | |
let bcryptHash = '$2y$13$gss9tp0xkdss8oksk040kOzPhX7iIr6hkIWOj5vEK4tO8P.C5kDi2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am andreasbkrueger on github. | |
* I am andreasbkrueger (https://keybase.io/andreasbkrueger) on keybase. | |
* I have a public key whose fingerprint is 52B3 4C76 0995 A092 6F61 7EE6 B173 2BAA 45A3 03E3 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(APPLICATION_ENV === 'production' AND $_SERVER['HTTP_HOST'] !== 'gutscheine.computerbild.de') { | |
switch(APPLICATION_COUNTRY) { | |
case 'ie': | |
$domain = 'www.discountcodes.ie'; | |
$domainPartnerApi = 'api.discountcodes.ie'; | |
break; | |
case 'pl': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gifts | |
'gifts-by-category' => 'geschenkgutscheine', | |