Remove o-auth account creation
Accounts can only be created with Github or email
This commit is contained in:
@ -41,6 +41,8 @@ module.exports = function(User) {
|
||||
User.definition.properties.rand.default = function() {
|
||||
return Math.random();
|
||||
};
|
||||
// increase user accessToken ttl to 900 days
|
||||
User.settings.ttl = 900 * 24 * 60 * 60 * 1000;
|
||||
|
||||
// username should not be in blacklist
|
||||
User.validatesExclusionOf('username', {
|
||||
|
Reference in New Issue
Block a user