Files
sumoc-backend/src/main/java/SuMoC/backend/security/exceptions/InvalidTokenException.java
T
Daniel 3d4f6a4d26
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
Working Implementation for resetting passwords based on a One Time Passcode (OTP). first request Token by stating your email to /request-password-forgot. OTP will be sent via email. Then just type in email, the OTP and a new password to /reset-password.
IMPORTANT - EMAIL SETUP in application.properties (if gmail):
#mail provider
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=<email>
# Nutze bei Gmail ein "App-Passwort", nicht dein normales (16 stellig)
spring.mail.password=xxxx xxxx xxxx xxxx
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
2026-02-17 18:56:59 +01:00

5 lines
176 B
Java

package SuMoC.backend.security.exceptions;
public class InvalidTokenException extends RuntimeException {
public InvalidTokenException(String message) { super(message); }
}