MediaWiki REL1_34
TOTPAuthenticationRequest.php
Go to the documentation of this file.
1<?php
20
22use RawMessage;
23
30 public $OATHToken;
31
32 public function describeCredentials() {
33 return [
34 'provider' => wfMessage( 'oathauth-describe-provider' ),
35 'account' => new RawMessage( '$1', [ $this->username ] ),
36 ] + parent::describeCredentials();
37 }
38
39 public function getFieldInfo() {
40 return [
41 'OATHToken' => [
42 'type' => 'string',
43 'label' => wfMessage( 'oathauth-auth-token-label' ),
44 'help' => wfMessage( 'oathauth-auth-token-help' )
45 ]
46 ];
47 }
48}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
This is a value object for authentication requests.
AuthManager value object for the TOTP second factor of an authentication: a pseudorandom token that i...
describeCredentials()
Describe the credentials represented by this request.
Variant of the Message class.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...