File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
modules/authentication/src/handlers Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- import { isNil } from 'lodash-es' ;
1
+ import { isNil , merge } from 'lodash-es' ;
2
2
import { AuthUtils } from '../utils/index.js' ;
3
3
import { TokenType } from '../constants/index.js' ;
4
4
import { v4 as uuid } from 'uuid' ;
@@ -24,7 +24,6 @@ import {
24
24
RoutingManager ,
25
25
} from '@conduitplatform/module-tools' ;
26
26
import { createHash } from 'crypto' ;
27
- import { merge } from 'lodash-es' ;
28
27
import { authenticateChecks , changePassword } from './utils.js' ;
29
28
30
29
export class LocalHandlers implements IAuthenticationStrategy {
@@ -710,13 +709,8 @@ export class LocalHandlers implements IAuthenticationStrategy {
710
709
}
711
710
712
711
private async initDbAndEmail ( ) {
713
- const config = ConfigController . getInstance ( ) . config ;
714
-
715
- if ( config . local . verification . send_email && this . grpcSdk . isAvailable ( 'email' ) ) {
712
+ if ( this . grpcSdk . isAvailable ( 'email' ) ) {
716
713
this . emailModule = this . grpcSdk . emailProvider ! ;
717
- }
718
-
719
- if ( config . local . verification . send_email && this . grpcSdk . isAvailable ( 'email' ) ) {
720
714
this . registerTemplates ( ) ;
721
715
}
722
716
this . initialized = true ;
You can’t perform that action at this time.
0 commit comments