use quarkus mailer for password recovery

This commit is contained in:
Athou
2024-08-12 09:41:14 +02:00
parent 1fd48a0a40
commit aaf237d111
9 changed files with 53 additions and 124 deletions

View File

@@ -49,6 +49,14 @@ public interface CommaFeedConfiguration {
@WithDefault("false")
boolean imageProxyEnabled();
/**
* Enable password recovery via email.
*
* Quarkus mailer will need to be configured.
*/
@WithDefault("false")
boolean passwordRecoveryEnabled();
/**
* Message displayed in a notification at the bottom of the page.
*/
@@ -84,11 +92,6 @@ public interface CommaFeedConfiguration {
*/
Websocket websocket();
/**
* SMTP settings for password recovery.
*/
Optional<Smtp> smtp();
/**
* Redis settings to enable caching. This is only really useful on instances with a lot of users.
*/
@@ -207,20 +210,6 @@ public interface CommaFeedConfiguration {
boolean createDemoAccount();
}
interface Smtp {
String host();
int port();
boolean tls();
String userName();
String password();
String fromAddress();
}
interface Websocket {
/**
* Enable websocket connection so the server can notify the web client that there are new entries for your feeds.