mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-03 16:16:59 +00:00
9 lines
424 B
TypeScript
9 lines
424 B
TypeScript
// The issuer is what the authenticator app lists the entry under. A branded
|
|
// deployment (APP_NAME) uses its own name; a stock install has the default
|
|
// "Webmail", which says nothing in a list of entries, so it keeps naming the
|
|
// account's server. (#1160)
|
|
export function totpIssuer(appName: string | undefined | null): string {
|
|
const name = appName?.trim();
|
|
return name && name !== 'Webmail' ? name : 'Stalwart';
|
|
}
|