File tree 3 files changed +254
-268
lines changed
3 files changed +254
-268
lines changed Original file line number Diff line number Diff line change 39
39
"semantic-release-slack-bot" : " ^4.0.0" ,
40
40
"ts-jest" : " ^29.0.5" ,
41
41
"ts-node" : " ^10.9.1" ,
42
- "typescript" : " ^4.9.5 "
42
+ "typescript" : " ^5.7.3 "
43
43
},
44
44
"dependencies" : {
45
- "@fastify/cookie" : " ^8.3.0 " ,
46
- "@fastify/formbody" : " ^7.4.0 " ,
47
- "@fastify/multipart" : " ^7.5.0 " ,
48
- "@fastify/session" : " ^10 .1.1 " ,
49
- "fastify" : " ^4.15.0 " ,
45
+ "@fastify/cookie" : " ^11.0.2 " ,
46
+ "@fastify/formbody" : " ^8.0.2 " ,
47
+ "@fastify/multipart" : " ^9.0.3 " ,
48
+ "@fastify/session" : " ^11 .1.0 " ,
49
+ "fastify" : " ^5.2.1 " ,
50
50
"lodash" : " ^4.17.21" ,
51
51
"mime-types" : " ^2.1.35"
52
52
}
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ export const withLogin = (
60
60
req . session . set ( 'adminUser' , adminUser ) ;
61
61
62
62
if ( req . session . redirectTo ) {
63
- return reply . redirect ( 302 , req . session . redirectTo ) ;
63
+ return reply . redirect ( req . session . redirectTo ) ;
64
64
} else {
65
- return reply . redirect ( 302 , rootPath ) ;
65
+ return reply . redirect ( rootPath ) ;
66
66
}
67
67
} else {
68
68
const login = await admin . renderLogin ( {
You can’t perform that action at this time.
0 commit comments