feat(auth): rich workspace-aware notification on successful login
Replace the plain "Login successful" toast with a TDesign Notify card that surfaces the workspace the user just landed in and their role there, so users immediately see which space they're working in — especially useful now that login can drop them into a remembered non-home tenant. A small shared helper (utils/loginNotify.ts) handles both the password login path (views/auth/Login.vue) and the OIDC callback path (App.vue handleGlobalOIDCCallback), so the two flows stay consistent. Role label goes through the same useRoleLabel composable used by the rest of the role-aware UI, so locale + future role-name tweaks live in one place. The membership lookup falls back gracefully (no role line) when the active tenant isn't in the response's memberships list — e.g. the auto-setup path that synthesises a single owner row. The legacy auth.loginSuccess key is left in place; nothing else references it, so a future cleanup PR can drop it safely.
This commit is contained in:
@@ -1147,6 +1147,9 @@ export default {
|
||||
rememberMe: "로그인 상태 유지",
|
||||
forgotPassword: "비밀번호를 잊으셨나요?",
|
||||
loginSuccess: "로그인 성공!",
|
||||
loginSuccessTitle: "로그인 성공",
|
||||
loginSuccessContent: "환영합니다. 「{name}」에 입장했습니다",
|
||||
loginSuccessContentWithRole: "환영합니다. 「{name}」에 입장했습니다 · 역할: {role}",
|
||||
loginFailed: "로그인 실패",
|
||||
loggingIn: "로그인 중...",
|
||||
oidcLogin: "OIDC로 로그인",
|
||||
|
||||
Reference in New Issue
Block a user