Server - fixed generateToken function in password-reset module