feat(OAuth): enhance OAuth user handling and add localized messages

This commit is contained in:
Torsten Schulz (local)
2026-05-15 14:30:56 +02:00
parent 5846b295ce
commit 6a478e7fbd
7 changed files with 25 additions and 4 deletions

View File

@@ -196,10 +196,11 @@ export default {
return;
}
this.oauthLoading = true;
window.location.href = `/api/auth/oauth/user/${encodeURIComponent(providerSlug)}/start`;
const uid = this.user?.hashedId || '';
window.location.href = `/api/auth/oauth/user/${encodeURIComponent(providerSlug)}/start?userid=${encodeURIComponent(uid)}`;
},
async removeOAuthIdentity(identityId) {
if (!confirm('Möchtest du diese Authentifizierung wirklich entfernen?')) {
if (!confirm(this.$t('settings.security.oauthRemoveConfirm'))) {
return;
}