File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,18 @@ export function getFilesController(options: ParseServerOptions): FilesController
98
98
} ) ;
99
99
}
100
100
101
- export function getUserController ( options : ParseServerOptions ) : UserController {
102
- const { appId, emailAdapter, verifyUserEmails } = options ;
101
+ export function getUserController ( options : ParseServerOptions ) {
102
+ const { appId, emailAdapter } = options ;
103
103
const emailControllerAdapter = loadAdapter ( emailAdapter ) ;
104
+
104
105
return new UserController ( emailControllerAdapter , appId , {
105
- verifyUserEmails,
106
+ verifyUserEmails : ( user , request ) => {
107
+
108
+ const createdWith = request ?. sessionToken ?. createdWith || { } ;
109
+ const { action, authProvider } = createdWith ;
110
+
111
+ return action === "signup" && authProvider === "password" ;
112
+ } ,
106
113
} ) ;
107
114
}
108
115
You can’t perform that action at this time.
0 commit comments