passwort anzeigen
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user