Skip to content

Commit

Permalink
Dev: Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 4, 2018
1 parent 79338f0 commit d794bee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions application/core/plugins/Authwebserver/Authwebserver.php
@@ -1,7 +1,7 @@
<?php
class Authwebserver extends LimeSurvey\PluginManager\AuthPluginBase
{
protected $storage = 'DbStorage';
protected $storage = 'DbStorage';

static protected $description = 'Core: Webserver authentication';
static protected $name = 'Webserver';
Expand Down Expand Up @@ -107,7 +107,7 @@ public function newUserSession()
}
} else {
if (Permission::model()->find('permission = :permission AND uid=:uid AND read_p =1', array(":permission" => 'auth_webserver', ":uid"=>$oUser->uid))) {
// Don't use Permission::model()->hasGlobalPermission : it's update the plugins event (and remove user/pass from event)
// Don't use Permission::model()->hasGlobalPermission : it's update the plugins event (and remove user/pass from event)
$this->setAuthSuccess($oUser);
return;
} else {
Expand All @@ -117,7 +117,7 @@ public function newUserSession()
}

if ($this->api->getConfigKey('auth_webserver_autocreate_user') && isset($aUserProfile) && is_null($oUser)) {
// user doesn't exist but auto-create user is set
// user doesn't exist but auto-create user is set
$oUser = new User;
$oUser->users_name = $sUser;
$oUser->setPassword(createPassword()); // needed ?
Expand All @@ -138,7 +138,5 @@ public function newUserSession()
}
}

}


}
}

0 comments on commit d794bee

Please sign in to comment.