File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,7 @@ export const checkUserIsVerifiedMiddleware = (
191
191
try {
192
192
if ( error ) return next ( error ) ;
193
193
194
- const { id, email, email_verified } =
195
- getUserFromAuthenticatedSession ( req ) ;
194
+ const { email, email_verified } = getUserFromAuthenticatedSession ( req ) ;
196
195
197
196
const needs_email_verification_renewal =
198
197
await needsEmailVerificationRenewal ( email ) ;
@@ -238,7 +237,7 @@ export const checkUserHasPersonalInformationsMiddleware = (
238
237
try {
239
238
if ( error ) return next ( error ) ;
240
239
241
- const { given_name, family_name, phone_number , job } =
240
+ const { given_name, family_name, job } =
242
241
getUserFromAuthenticatedSession ( req ) ;
243
242
if ( isEmpty ( given_name ) || isEmpty ( family_name ) || isEmpty ( job ) ) {
244
243
return res . redirect ( "/users/personal-information" ) ;
You can’t perform that action at this time.
0 commit comments