mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-15 03:52:06 +00:00
30 lines
557 B
JavaScript
30 lines
557 B
JavaScript
|
|
class EmailConfig {
|
||
|
|
constructor(config) {
|
||
|
|
this.config = config;
|
||
|
|
}
|
||
|
|
|
||
|
|
getPasswordReset() {
|
||
|
|
const reset = this.config['password-reset'];
|
||
|
|
|
||
|
|
return {
|
||
|
|
getHTML() {
|
||
|
|
return reset['html-template'];
|
||
|
|
},
|
||
|
|
|
||
|
|
getText() {
|
||
|
|
return reset['text-template'];
|
||
|
|
},
|
||
|
|
|
||
|
|
getFrom() {
|
||
|
|
return reset['from'];
|
||
|
|
},
|
||
|
|
|
||
|
|
getSubject() {
|
||
|
|
return reset['subject'];
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export { EmailConfig };
|