File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
adminforth/commands/createApp/templates Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import AdminForth from 'adminforth';
33import usersResource from "./resources/adminuser.js";
44import { fileURLToPath } from 'url';
55import path from 'path';
6+ import { Filters } from 'adminforth';
67
78const ADMIN_BASE_URL = '';
89
@@ -16,7 +17,7 @@ export const admin = new AdminForth({
1617 loginBackgroundImage: 'https://images.unsplash.com/photo-1534239697798-120952b76f2b?q=80& w=3389& auto=format& fit=crop& ixlib=rb-4.0.3& ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
1718 loginBackgroundPosition: '1/2',
1819 loginPromptHTML: async () => {
19- const adminforthUserExists = await admin.resource("users ").count(Filters.EQ('email', 'adminforth')) > 0;
20+ const adminforthUserExists = await admin.resource("adminuser ").count(Filters.EQ('email', 'adminforth')) > 0;
2021 if (adminforthUserExists) {
2122 return "Please use <b >adminforth</b > as username and <b >adminforth</b > as password"
2223 }
You can’t perform that action at this time.
0 commit comments