add support for habitica-android in x-client header

This commit is contained in:
Matteo Pagliazzi
2015-12-09 11:02:26 +01:00
parent 3385cb807e
commit c5b7873406
2 changed files with 52 additions and 1 deletions

View File

@@ -585,7 +585,7 @@ UserSchema.methods.unlink = function(options, cb) {
function _populateDefaultsForNewUser(user) {
var taskTypes;
if (user.registeredThrough === "habitica-web") {
if (user.registeredThrough === "habitica-web" || user.registeredThrough === "habitica-android") {
taskTypes = ['habits', 'dailys', 'todos', 'rewards', 'tags'];
var tutorialCommonSections = [