/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45// Authentication and SSO related utility functions or data shared between all packages67import { capitalize } from "@cocalc/util/misc";89export function ssoDispayedName({10display,11name, // name of strategy12}: {13display?: string;14name?: string;15}) {16return display ?? (name === "github" ? "GitHub" : capitalize(name));17}1819export const MAX_PASSWORD_LENGTH = 64;20export const MIN_PASSWORD_LENGTH = 8;21export const MIN_PASSWORD_STRENGTH = 2; // zxcvbn score must be > 2 (so 3 or 4)222324