Merge remote-tracking branch 'origin/master' into jetty-9.1
This commit is contained in:
commit
af98046d13
|
@ -212,6 +212,9 @@ public abstract class MappedLoginService extends AbstractLifeCycle implements Lo
|
||||||
*/
|
*/
|
||||||
public UserIdentity login(String username, Object credentials)
|
public UserIdentity login(String username, Object credentials)
|
||||||
{
|
{
|
||||||
|
if (username == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
UserIdentity user = _users.get(username);
|
UserIdentity user = _users.get(username);
|
||||||
|
|
||||||
if (user==null)
|
if (user==null)
|
||||||
|
|
|
@ -117,6 +117,9 @@ public class DeferredAuthentication implements Authentication.Deferred
|
||||||
@Override
|
@Override
|
||||||
public Authentication login(String username, Object password, ServletRequest request)
|
public Authentication login(String username, Object password, ServletRequest request)
|
||||||
{
|
{
|
||||||
|
if (username == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
UserIdentity identity = _authenticator.login(username, password, request);
|
UserIdentity identity = _authenticator.login(username, password, request);
|
||||||
if (identity != null)
|
if (identity != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue