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';
3
3
import usersResource from "./resources/adminuser.js";
4
4
import { fileURLToPath } from 'url';
5
5
import path from 'path';
6
+ import { Filters } from 'adminforth';
6
7
7
8
const ADMIN_BASE_URL = '';
8
9
@@ -16,7 +17,7 @@ export const admin = new AdminForth({
16
17
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',
17
18
loginBackgroundPosition: '1/2',
18
19
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;
20
21
if (adminforthUserExists) {
21
22
return "Please use <b >adminforth</b > as username and <b >adminforth</b > as password"
22
23
}
You can’t perform that action at this time.
0 commit comments