passwort anzeigen

This commit is contained in:
2026-05-25 17:10:09 +02:00
parent fcd13e6a40
commit 4a2e94bc83
18 changed files with 359 additions and 46 deletions

View File

@@ -5,6 +5,7 @@ import { useCustomers } from '../hooks/useCustomers'
import { useEmployees } from '../hooks/useEmployees'
import { FaPlus, FaTrash, FaFloppyDisk, FaSpinner } from 'react-icons/fa6'
import { FaEdit } from 'react-icons/fa'
import CopyableCredential, { getCustomerPortalPassword } from '../components/CopyableCredential'
export default function AdminPage() {
const { user, isAdmin } = useAuth()
@@ -398,6 +399,7 @@ export default function AdminPage() {
<th>Name</th>
<th>Location</th>
<th>Email</th>
<th>Passwort</th>
<th>Phone</th>
<th>Portal</th>
<th>Aktionen</th>
@@ -499,7 +501,12 @@ export default function AdminPage() {
<td>{customer.code || '-'}</td>
<td>{customer.name || '-'}</td>
<td>{customer.location || '-'}</td>
<td>{customer.email || '-'}</td>
<td>
<CopyableCredential value={customer.email} />
</td>
<td>
<CopyableCredential value={getCustomerPortalPassword(customer)} />
</td>
<td>{customer.phone || '-'}</td>
<td>
{customer.portalAccessEnabled ? (