diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 5fc2bfe7c..7b7a126c7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -53,6 +53,7 @@ - fixed #8908: No Post Captcha in Default Submission Form - fixed #9138: Fat fonts break WebGUI captchas - fixed #8982: Deploy package doesn't take back to asset manager + - fixed #8956: Not checking for populated variable 7.6.3 - improved performance of file uploads diff --git a/lib/WebGUI/Auth.pm b/lib/WebGUI/Auth.pm index 734f040ce..dc012c9a1 100755 --- a/lib/WebGUI/Auth.pm +++ b/lib/WebGUI/Auth.pm @@ -151,7 +151,8 @@ sub authenticate { =head2 authMethod ( [authMethod] ) -Gets or sets the authMethod in the Auth Object +Gets or sets the authMethod in the Auth Object. Returns 'WebGUI' as the +default method if a user has been created without an authMethod. =head3 authMethod @@ -161,7 +162,9 @@ Gets or sets the authMethod in the Auth Object sub authMethod { my $self = shift; - return $self->{authMethod} if(!$_[0]); + if (!$_[0]) { + return $self->{authMethod} || 'WebGUI'; + } $self->{authMethod} = $_[0]; }