Enhance: 2段階認証時のリカバリーコードのファイル名にサーバーURLを含めるように (#15677)

* enhance(frontend): include server hostname and port in 2fa recovery code filename

* chore(frontend): fix mistake(use `@` for indicate server hostname)

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
Sayamame-beans
2025-03-19 19:34:57 +09:00
committed by GitHub
parent 3b20279e20
commit 71841e365e
3 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ const siteName = document.querySelector<HTMLMetaElement>('meta[property="og:site
export const host = address.host;
export const hostname = address.hostname;
export const url = address.origin;
export const port = address.port;
export const apiUrl = location.origin + '/api';
export const wsOrigin = location.origin;
export const lang = localStorage.getItem('lang') ?? 'en-US';