diff --git a/server/server.go b/server/server.go index 29924b2b..34eabc92 100644 --- a/server/server.go +++ b/server/server.go @@ -36,13 +36,15 @@ import ( /* TODO - return rate limit information in account stats + persist user stats in user table expire tokens auto-refresh tokens from UI reserve topics rate limit for signup (2 per 24h) handle invalid session token update disallowed topics + purge accounts that were not logged into in X + sync subscription display name Pages: - Home - Password reset diff --git a/web/src/components/Account.js b/web/src/components/Account.js index 1b4d4ea2..d694a0ec 100644 --- a/web/src/components/Account.js +++ b/web/src/components/Account.js @@ -88,7 +88,7 @@ const Stats = () => { 0 ? normalize(account.stats.emails, account.limits.emails) : 100} /> - +
{formatBytes(account.stats.attachment_total_size)} {account.limits.attachment_total_size > 0 ? t("of {{limit}}", { limit: formatBytes(account.limits.attachment_total_size) }) : t("Unlimited")} @@ -96,6 +96,10 @@ const Stats = () => { 0 ? normalize(account.stats.attachment_total_size, account.limits.attachment_total_size) : 100} /> + {account.limits.basis === "ip" && + Usage stats and limits for this account are based on your IP address, so they may be shared + with other users. + } ); }; @@ -320,7 +324,7 @@ const Pref = (props) => { paddingRight: '30px' }} > -
{props.title}
+
{props.title}{props.subtitle && ({props.subtitle})}
{props.description &&
{props.description}
}