Email SSPR fixes & user management improvements
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -16,15 +16,25 @@ RUN mkdir -p /app/data
|
||||
|
||||
# Accept build arguments
|
||||
ARG SITE_URL=https://nlcc.rydertech.us
|
||||
ARG AUTH_SECRET=change-this-secret-in-production
|
||||
ARG AUTH_SECRET=change-this-secret-in-production-please
|
||||
ARG ADMIN_USERNAME=admin
|
||||
ARG ADMIN_PASSWORD=admin123
|
||||
ARG ADMIN_PASSWORD=Admin123!
|
||||
ARG EMAIL_HOST=smtp.example.com
|
||||
ARG EMAIL_PORT=587
|
||||
ARG EMAIL_USER=noreply@example.com
|
||||
ARG EMAIL_PASSWORD=your-email-password
|
||||
ARG EMAIL_FROM=New Life Christian Church <noreply@example.com>
|
||||
|
||||
# Set environment variables for build
|
||||
ENV SITE_URL=$SITE_URL
|
||||
ENV AUTH_SECRET=$AUTH_SECRET
|
||||
ENV ADMIN_USERNAME=$ADMIN_USERNAME
|
||||
ENV ADMIN_PASSWORD=$ADMIN_PASSWORD
|
||||
ENV EMAIL_HOST=$EMAIL_HOST
|
||||
ENV EMAIL_PORT=$EMAIL_PORT
|
||||
ENV EMAIL_USER=$EMAIL_USER
|
||||
ENV EMAIL_PASSWORD=$EMAIL_PASSWORD
|
||||
ENV EMAIL_FROM=$EMAIL_FROM
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
@@ -48,6 +48,12 @@
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||
Username
|
||||
</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||
First Name
|
||||
</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||
Last Name
|
||||
</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||
Role
|
||||
</th>
|
||||
@@ -61,6 +67,12 @@
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<div class="text-sm font-medium text-gray-900">{{ user.username }}</div>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<div class="text-sm text-gray-900">{{ user.first_name || '-' }}</div>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<div class="text-sm text-gray-900">{{ user.last_name || '-' }}</div>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<span
|
||||
:class="user.is_admin ? 'bg-blue-100 text-blue-800' : 'bg-gray-100 text-gray-800'"
|
||||
@@ -175,6 +187,8 @@ definePageMeta({
|
||||
interface User {
|
||||
id: number
|
||||
username: string
|
||||
first_name?: string
|
||||
last_name?: string
|
||||
is_admin: number
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user