mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-19 06:18:15 +08:00
fix bug #91
This commit is contained in:
@@ -55,6 +55,7 @@ public class EmbedAuthenticationManager implements AuthenticationManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
authentications.put(id, properties.toAuthentication(dataAccessConfigBuilderFactory));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -66,7 +67,7 @@ public class EmbedAuthenticationManager implements AuthenticationManager {
|
||||
((PlainTextUsernamePasswordAuthenticationRequest) request).getUsername().equals(user.getUsername())
|
||||
&& ((PlainTextUsernamePasswordAuthenticationRequest) request).getPassword().equals(user.getPassword()))
|
||||
.findFirst()
|
||||
.map(properties -> properties.toAuthentication(dataAccessConfigBuilderFactory))
|
||||
.map(properties -> authentications.get(properties.getId()))
|
||||
.orElseThrow(() -> new ValidationException("用户不存在")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user