mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 08:46:38 +00:00
make config class and separate migrations script
This commit is contained in:
@@ -34,7 +34,7 @@ export const verifySessionUserMiddleware = async (
|
||||
|
||||
if (
|
||||
!existingUser[0].emailVerified &&
|
||||
config.flags?.require_email_verification
|
||||
config.getRawConfig().flags?.require_email_verification
|
||||
) {
|
||||
return next(
|
||||
createHttpError(HttpCode.BAD_REQUEST, "Email is not verified") // Might need to change the response type?
|
||||
|
||||
Reference in New Issue
Block a user