Function __global->cns_authusername_is_bound_via_httpauth

Definitions

sources/cns_members.php

  • Find whether a member of a certain username is bound to HTTP authentication (an exceptional situation, only for sites that use it).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$authusername string No No required parameter N/A N/A The username

Returns

  • The member ID, if it is (null: not bound)
  • Type: ?integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a member of a certain username is bound to HTTP authentication (an exceptional situation, only for sites that use it).
 *
 * @param  string $authusername The username
 * @return ?integer The member ID, if it is (null: not bound)
 */

function cns_authusername_is_bound_via_httpauth(string $authusername) : ?int