feat(convention): temporary solution to disable dailies for signups
during conventions (have to be on con.habitrpg.com)
This commit is contained in:
@@ -93,6 +93,15 @@ api.registerUser = function(req, res, next) {
|
||||
}
|
||||
};
|
||||
user = new User(newUser);
|
||||
|
||||
// temporary for conventions
|
||||
if (req.subdomains[0] == 'con') {
|
||||
_.each(user.dailys, function(h){
|
||||
h.repeat = {m:false,t:false,w:false,th:false,f:false,s:false,su:false};
|
||||
})
|
||||
user.extra = {signupEvent: 'wondercon'};
|
||||
}
|
||||
|
||||
user.save(cb);
|
||||
ga.event('register', 'Local').send()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user