*
* Log in a user and regenerate a new session.
*
- * @param \OCP\ApacheBackend $backend
+ * @param \OCP\Authentication\IApacheBackend $backend
* @return bool
*/
- public static function loginWithApache(\OCP\ApacheBackend $backend) {
+ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backend) {
$uid = $backend->getCurrentUserId();
$run = true;
*/
public static function handleApacheAuth() {
foreach (self::$_usedBackends as $backend) {
- if ($backend instanceof OCP\ApacheBackend) {
+ if ($backend instanceof OCP\Authentication\IApacheBackend) {
if ($backend->isSessionActive()) {
OC_App::loadApps();
*/
public static function getLogoutAttribute() {
foreach (self::$_usedBackends as $backend) {
- if ($backend instanceof OCP\ApacheBackend) {
+ if ($backend instanceof OCP\Authentication\IApacheBackend) {
if ($backend->isSessionActive()) {
return $backend->getLogoutAttribute();
}