修复 设备注册时报错 #799
parent
056162d742
commit
053cd130aa
|
@ -171,7 +171,7 @@ public class DigestServerAuthenticationHelper {
|
||||||
*/
|
*/
|
||||||
public boolean doAuthenticatePlainTextPassword(Request request, String pass) {
|
public boolean doAuthenticatePlainTextPassword(Request request, String pass) {
|
||||||
AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);
|
AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);
|
||||||
if ( authHeader == null ) {
|
if ( authHeader == null || authHeader.getRealm() == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String realm = authHeader.getRealm().trim();
|
String realm = authHeader.getRealm().trim();
|
||||||
|
|
Loading…
Reference in New Issue