MailConfiguration to Mail from config
This commit is contained in:
parent
234a4a4795
commit
6b652c8adf
1 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,8 @@ import java.io.FileReader;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
|
import dev.peerat.backend.utils.Mail;
|
||||||
|
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
|
|
||||||
private String db_host;
|
private String db_host;
|
||||||
|
@ -180,8 +182,8 @@ public class Configuration {
|
||||||
return this.groupQuitMinutes;
|
return this.groupQuitMinutes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MailConfiguration getMailConfiguration(){
|
public Mail getMail(){
|
||||||
return new MailConfiguration(
|
return new Mail(
|
||||||
this.mailUsername,
|
this.mailUsername,
|
||||||
this.mailPassword,
|
this.mailPassword,
|
||||||
this.mailSmtpHost,
|
this.mailSmtpHost,
|
||||||
|
|
Loading…
Add table
Reference in a new issue