File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,24 @@ import { users_temp } from "@dokploy/server/db/schema";
44import { eq } from "drizzle-orm" ;
55
66( async ( ) => {
7- try {
8- const result = await findAdmin ( ) ;
7+ try {
8+ const result = await findAdmin ( ) ;
99
10- const update = await db
11- . update ( users_temp )
12- . set ( {
13- twoFactorEnabled : false ,
14- } )
15- . where ( eq ( users_temp . id , result . userId ) ) ;
10+ const update = await db
11+ . update ( users_temp )
12+ . set ( {
13+ twoFactorEnabled : false ,
14+ } )
15+ . where ( eq ( users_temp . id , result . userId ) ) ;
1616
17- if ( update ) {
18- console . log ( "2FA reset successful" ) ;
19- } else {
20- console . log ( "Password reset failed" ) ;
21- }
17+ if ( update ) {
18+ console . log ( "2FA reset successful" ) ;
19+ } else {
20+ console . log ( "Password reset failed" ) ;
21+ }
2222
23- process . exit ( 0 ) ;
24- } catch ( error ) {
25- console . log ( "Error resetting 2FA" , error ) ;
26- }
23+ process . exit ( 0 ) ;
24+ } catch ( error ) {
25+ console . log ( "Error resetting 2FA" , error ) ;
26+ }
2727} ) ( ) ;
You can’t perform that action at this time.
0 commit comments