Lizmap Web Client 3.11.0

Checker
in package

Table of Contents

Methods

checkCredentials()  : bool
Check if credentials of the user are correct.
checkWfsAccessAcl()  : bool
Check if the user has access to the WFS service.

Methods

checkCredentials()

Check if credentials of the user are correct.

public static checkCredentials(array<string|int, mixed> $serverVars) : bool
Parameters
$serverVars : array<string|int, mixed>

Server variables, including authentication details

Return values
bool

True if

  • no BASIC authentication is needed
  • authentication is OK with login & password from $_SERVER variable False otherwise if $_SERVER login & password are incorrect

checkWfsAccessAcl()

Check if the user has access to the WFS service.

public static checkWfsAccessAcl(Project $project) : bool
Parameters
$project : Project

The Lizmap project

Return values
bool

true if the user has access to the WFS service

On this page

Search results