Check email validity before using it for password hint sending

This commit is contained in:
Jean-Christophe BEGUE
2018-08-15 17:25:59 +02:00
committed by Jean-Christophe BEGUE
parent 401aa7c699
commit 9e63985b28
4 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
use std::error::Error;
use native_tls::TlsConnector;
use native_tls::{Protocol};
use native_tls::{Protocol, TlsConnector};
use lettre::{EmailTransport, SmtpTransport, ClientTlsParameters, ClientSecurity};
use lettre::smtp::{ConnectionReuseParameters, SmtpTransportBuilder};
use lettre::smtp::authentication::Credentials;