Check email validity before using it for password hint sending

This commit is contained in:
Jean-Christophe BEGUE authored and Jean-Christophe BEGUE committed 2018-08-16 21:25:28 +02:00
1 parent 401aa7c699
commit 9e63985b28
4 files changed
+8 -2

No files matched your search

+1 -2
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;