Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 338 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: factor  - X-Ref

WebAuthn factor class.

__construct($name)   X-Ref
Create webauthn server.

param: string $name

get_all_user_factors(stdClass $user)   X-Ref
WebAuthn Factor implementation.

param: stdClass $user the user to check against.
return: array

has_input()   X-Ref
WebAuthn Factor implementation.

{@inheritDoc}

has_revoke()   X-Ref
WebAuthn Factor implementation.

{@inheritDoc}

has_setup()   X-Ref
WebAuthn Factor implementation.

{@inheritDoc}

show_setup_buttons()   X-Ref
WebAuthn Factor implementation.

{@inheritDoc}

possible_states(stdClass $user)   X-Ref
WebAuthn factor implementation.

param: stdClass $user
return: array

get_state()   X-Ref
WebAuthn state

{@inheritDoc}

get_setup_string()   X-Ref
Gets the string for setup button on preferences page.

return: string

login_form_definition(\MoodleQuickForm $mform)   X-Ref
WebAuthn Factor implementation.

param: \MoodleQuickForm $mform
return: \MoodleQuickForm $mform

login_form_validation(array $data)   X-Ref
WebAuthn Factor implementation.

param: array $data
return: array

setup_factor_form_definition(\MoodleQuickForm $mform)   X-Ref
WebAuthn Factor implementation.

param: \MoodleQuickForm $mform
return: object $mform

setup_user_factor(object $data)   X-Ref
WebAuthn Factor implementation.

param: object $data
return: stdClass|null