mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* Don't sign in user when trying to connect a social account that was already created * Log social users into matching local auth accounts If the social account has an email that already exists as a local user, instead of creating a new account log them into their account and add the social auth to the account * If possible set local authentication email for social users * Allow password reset emails to be sent to social login users * lint fixes * Fix issues and tests * fix tests * Fix lint error. * purge Facebook. Only keep it in some select places to allow for some compatablilty. * Fix error * fix error * Let settings handle it when you don't have a password set but an email * fix error * Fix boolean logic * fix json conversion * . * fix password reset for old social accounts * Don't sign in user when trying to connect a social account that was already created * Log social users into matching local auth accounts If the social account has an email that already exists as a local user, instead of creating a new account log them into their account and add the social auth to the account * If possible set local authentication email for social users * Allow password reset emails to be sent to social login users * lint fixes * Fix issues and tests * fix tests * Fix lint error. * purge Facebook. Only keep it in some select places to allow for some compatablilty. * Fix error * fix error * Let settings handle it when you don't have a password set but an email * fix error * Fix boolean logic * fix json conversion * fix password reset for old social accounts * Revert "lint fixes" This reverts commitc244b1651c. # Conflicts: # website/client/src/components/auth/registerLoginReset.vue # website/client/src/components/static/contact.vue * Revert "fix password reset for old social accounts" This reverts commit7e0069a80f. * fix duplicate code * chore(misc): remove irrelevant changes * chore(privacy): update policy page with note about FB Co-authored-by: SabreCat <sabe@habitica.com>
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
export const MAX_HEALTH = 50;
|
|
export const MAX_LEVEL = 100;
|
|
export const MAX_STAT_POINTS = MAX_LEVEL;
|
|
export const MAX_LEVEL_HARD_CAP = 9999;
|
|
export const ATTRIBUTES = ['str', 'int', 'con', 'per'];
|
|
export const MAX_INCENTIVES = 500;
|
|
|
|
export const TAVERN_ID = '00000000-0000-4000-A000-000000000000';
|
|
export const LARGE_GROUP_COUNT_MESSAGE_CUTOFF = 5000;
|
|
export const MAX_SUMMARY_SIZE_FOR_GUILDS = 250;
|
|
export const MAX_SUMMARY_SIZE_FOR_CHALLENGES = 250;
|
|
export const MIN_SHORTNAME_SIZE_FOR_CHALLENGES = 3;
|
|
export const MAX_MESSAGE_LENGTH = 3000;
|
|
|
|
export const MAX_GIFT_MESSAGE_LENGTH = 200;
|
|
|
|
export const CHAT_FLAG_LIMIT_FOR_HIDING = 2; // hide posts that have this many flags
|
|
export const CHAT_FLAG_FROM_MOD = 5; // a flag from a moderator counts as this many flags
|
|
// a shadow-muted user's post starts with this many flags
|
|
export const CHAT_FLAG_FROM_SHADOW_MUTE = 10;
|
|
// @TODO use those constants to replace hard-coded numbers
|
|
|
|
export const SUPPORTED_SOCIAL_NETWORKS = [
|
|
{ key: 'google', name: 'Google' },
|
|
{ key: 'apple', name: 'Apple' },
|
|
];
|
|
|
|
export const GUILDS_PER_PAGE = 30; // number of guilds to return per page when using pagination
|
|
|
|
export const PARTY_LIMIT_MEMBERS = 29;
|
|
|
|
export const MINIMUM_PASSWORD_LENGTH = 8;
|
|
|
|
export const TRANSFORMATION_DEBUFFS_LIST = {
|
|
snowball: 'salt',
|
|
spookySparkles: 'opaquePotion',
|
|
shinySeed: 'petalFreePotion',
|
|
seafoam: 'sand',
|
|
};
|