fixed issue stressfrei adress as username not filled oin cockpit
This commit is contained in:
@@ -303,7 +303,11 @@ export async function getCockpitData(): Promise<CockpitResult> {
|
||||
}
|
||||
|
||||
// 3. FEHLENDE PORTAL-ZUGANGSDATEN
|
||||
if (!contract.portalUsername || !contract.portalPasswordEncrypted) {
|
||||
// Benutzername kann entweder manuell (portalUsername) oder via Stressfrei-Wechseln E-Mail (stressfreiEmailId) gesetzt sein
|
||||
const hasUsername = contract.portalUsername || contract.stressfreiEmailId;
|
||||
const hasPassword = contract.portalPasswordEncrypted;
|
||||
|
||||
if (!hasUsername || !hasPassword) {
|
||||
issues.push({
|
||||
type: 'missing_portal_credentials',
|
||||
label: 'Portal-Zugangsdaten fehlen',
|
||||
|
||||
Reference in New Issue
Block a user