[Modify] Polish it
This commit is contained in:
parent
d021f1e20a
commit
381f207b91
@ -612,7 +612,9 @@ namespace WebSocketSharp.Net
|
|||||||
_userCredFinder
|
_userCredFinder
|
||||||
);
|
);
|
||||||
|
|
||||||
if (user == null || !user.Identity.IsAuthenticated) {
|
var authenticated = user != null && user.Identity.IsAuthenticated;
|
||||||
|
|
||||||
|
if (!authenticated) {
|
||||||
context.SendAuthenticationChallenge (schm, realm);
|
context.SendAuthenticationChallenge (schm, realm);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user