mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
[FIXED HUDSON-3590] don't create new in-memory user when someone attempts
login with invalid username git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19411 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
aedca55e74
commit
c9db91664d
1 file changed
+2
-1
@@ -384,7 +384,8 @@ public class HudsonPrivateSecurityRealm extends SecurityRealm implements ModelOb
|
||||
*/
|
||||
public static final class HudsonUserDetailsService implements UserDetailsService {
|
||||
public UserDetails loadUserByUsername(String username) {
|
||||
Details p = User.get(username).getProperty(Details.class);
|
||||
User u = User.get(username,false);
|
||||
Details p = u!=null ? u.getProperty(Details.class) : null;
|
||||
if(p==null)
|
||||
throw new UsernameNotFoundException("Password is not set: "+username);
|
||||
if(p.getUser()==null)
|
||||
|
||||
Reference in new issue
Block a user