File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,11 +214,11 @@ if (import.meta.url === `file://${process.argv[1]}`) {
214214 role : 'user' , // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
215215 } ) ;
216216 }
217- if ( ! await admin . resource ( 'users' ) . get ( [ Filters . EQ ( 'email' , "admin @adminfoth.dev" ) ] ) ) {
217+ if ( ! await admin . resource ( 'users' ) . get ( [ Filters . EQ ( 'email' , "admin1 @adminfoth.dev" ) ] ) ) {
218218 await admin . resource ( 'users' ) . create ( {
219219 email : "admin@adminfoth.dev" ,
220220 password_hash : await AdminForth . Utils . generatePasswordHash ( process . env . ADMIN_PASSWORD ) ,
221- role : 'user ' , // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
221+ role : 'superadmin ' , // THE DEMO user role is 'user' not 'superadmin', he can't do any destructive actions
222222 } ) ;
223223 }
224224
You can’t perform that action at this time.
0 commit comments