replaced Content by Payload due to upstream library changes
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -3,7 +3,7 @@ description = "SRSoftware OIDC: file datastore module"
|
||||
dependencies{
|
||||
implementation("com.sun.mail:jakarta.mail:2.0.1")
|
||||
implementation("de.srsoftware:tools.optionals:1.0.0")
|
||||
implementation("de.srsoftware:tools.util:1.0.3")
|
||||
implementation("de.srsoftware:tools.util:1.1.0")
|
||||
implementation("org.json:json:20240303")
|
||||
|
||||
implementation(project(":de.srsoftware.oidc.api"))
|
||||
|
||||
@@ -10,9 +10,9 @@ import static java.util.Optional.empty;
|
||||
|
||||
import de.srsoftware.oidc.api.*;
|
||||
import de.srsoftware.oidc.api.data.*;
|
||||
import de.srsoftware.tools.Content;
|
||||
import de.srsoftware.tools.Error;
|
||||
import de.srsoftware.tools.PasswordHasher;
|
||||
import de.srsoftware.tools.Payload;
|
||||
import de.srsoftware.tools.Result;
|
||||
import jakarta.mail.Authenticator;
|
||||
import jakarta.mail.PasswordAuthentication;
|
||||
@@ -198,7 +198,7 @@ public class FileStore implements AuthorizationService, ClientService, SessionSe
|
||||
var loadedUser = User.of(userData, userId).filter(u -> passwordMatches(password, u));
|
||||
if (loadedUser.isPresent()) {
|
||||
unlock(username);
|
||||
return Content.of(loadedUser.get());
|
||||
return Payload.of(loadedUser.get());
|
||||
}
|
||||
}
|
||||
var lock = lock(username);
|
||||
|
||||
Reference in New Issue
Block a user