Hello, I have been having trouble with changing the users password on the server. I have tried changeing passwords on a clean project and a different computer but i still keep getting this error Untitled - Pastebin
and this is the code I am using
Use_ForgotPass_Code(Email:string, Code:string, Password:string){
const user = UserLookUp('email', Email)
if(user == undefined)
Error('Account Search', 'No accounts found with this email')
if(!CheckVCode(user._id, 'ResetPassword', Code))
Error('Code', 'This code is wrong')
Accounts.setPassword(user._id, Password)
}
Can anyone help?