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
const Passport = require('passport'); | |
const PassportProviders = require('../providers.json'); | |
const LocalPassportConfig = PassportProviders['local']; | |
LocalPassportConfig.customCallback = function (req, res, next) { | |
Passport.authenticate('local', {}, function (err, user, info) { | |
if (err) { | |
return res.status(500).json(err); // log internals - do not expose them | |
} |
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
const PassportProviders = require('../providers.json'); | |
const LocalPassportConfig = PassportProviders['local']; | |
LocalPassportConfig.emailVerificationCallback = function (user) { | |
if (user && user.customAttribute) { | |
return true; | |
} | |
return false; | |
}; |
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
Phase | Date | Price | Bonus | |
---|---|---|---|---|
1 | November 2019 | $ 0.02 | 30 % | |
2 | December 2019 | $ 0.02 | 20 % | |
3 | January 2020 | $ 0.02 | 10 % | |
4 | February 2020 | $ 0.02 | 0 % | |
5 | March 2020 | $ 0.025 | 0 % | |
6 | April 2020 | $ 0.03 | 0 % | |
7 | May 2020 | $ 0.035 | 0 % | |
8 | June 2020 | $ 0.04 | 0 % | |
9 | July 2020 | $ 0.045 | 0 % |