comparison Lib/IMPL/Web/Security.pm @ 391:2287c72f303a

code cleanup
author cin
date Thu, 13 Feb 2014 20:17:22 +0400
parents 63709a4e6da0
children 69a1f1508696
comparison
equal deleted inserted replaced
390:de1f875e8875 391:2287c72f303a
18 ERR_NO_SEC_CONTEXT => -4, 18 ERR_NO_SEC_CONTEXT => -4,
19 ERR_AUTH_FAIL => -5 19 ERR_AUTH_FAIL => -5
20 }; 20 };
21 21
22 sub AuthUser { 22 sub AuthUser {
23 my ($this,$name,$package,$challenge) = @_; 23 my ($this,$name,$challenge,$package) = @_;
24
25 $package ||= $this->interactiveAuthPackage;
24 26
25 my $user = $this->users->GetById($name) 27 my $user = $this->users->GetById($name)
26 or return { 28 or return {
27 status => AUTH_FAIL, 29 status => AUTH_FAIL,
28 code => ERR_NO_SUCH_USER 30 code => ERR_NO_SUCH_USER